[Mono-list] C# syntax highlighting for Kate

Joe Mozelesky jmozelesky@netcarrier.com
Mon, 25 Nov 2002 17:05:37 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0048_01C294A4.E04F3570
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

If anyone is interested, I've attached a syntax highlighting file for
Kate, a pretty cool KDE text editor.  Eclipse is just too slow on my
system (and I'm on a 1Ghz P-III w/512MB RAM!!!), emacs is just too
overwhelming, and Anjuta doesn't support C# yet, that I've found; so
I've decided to use Kate.

It's just an XML file that you are supposed to copy to your Kate syntax
directory which on my system is /usr/share/apps/kate/syntax.

Happy Coding,
Joe


------=_NextPart_000_0048_01C294A4.E04F3570
Content-Type: text/xml;
	name="csharp.xml"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="csharp.xml"

<?xml version=3D"1.0" encoding=3D"UTF-8"?>=0A=
<!DOCTYPE language SYSTEM "language.dtd">=0A=
<language name=3D"C#" section=3D"Sources" extensions=3D"*.cs;*.csharp" =
mimetype=3D"text/x-c#-src;text/x-csharp-src">=0A=
  <highlighting>=0A=
    <list name=3D"keywords">=0A=
    <item>abstract</item>=0A=
    <item>as</item>=0A=
    <item>base</item>=0A=
    <item>break</item>=0A=
    <item>case</item>=0A=
    <item>catch</item>=0A=
    <item>checked</item>=0A=
    <item>class</item>=0A=
    <item>const</item>=0A=
    <item>continue</item>=0A=
    <item>default</item>=0A=
    <item>delegate</item>=0A=
    <item>do</item>=0A=
    <item>else</item>=0A=
    <item>event</item>=0A=
    <item>explicit</item>=0A=
    <item>extern</item>=0A=
    <item>false</item>=0A=
    <item>finally</item>=0A=
    <item>fixed</item>=0A=
    <item>for</item>=0A=
    <item>foreach</item>=0A=
    <item>goto</item>=0A=
    <item>if</item>=0A=
    <item>implicit</item>=0A=
    <item>in</item>=0A=
    <item>interface</item>=0A=
    <item>internal</item>=0A=
    <item>is</item>=0A=
    <item>lock</item>=0A=
    <item>namespace</item>=0A=
    <item>new</item>=0A=
    <item>null</item>=0A=
    <item>object</item>=0A=
    <item>operator</item>=0A=
    <item>out</item>=0A=
    <item>override</item>=0A=
    <item>params</item>=0A=
    <item>private</item>=0A=
    <item>protected</item>=0A=
    <item>public</item>=0A=
    <item>readonly</item>=0A=
    <item>ref</item>=0A=
    <item>return</item>=0A=
    <item>sealed</item>=0A=
    <item>sizeof</item>=0A=
    <item>stackalloc</item>=0A=
    <item>static</item>=0A=
    <item>switch</item>=0A=
    <item>this</item>=0A=
    <item>throw</item>=0A=
    <item>try</item>=0A=
    <item>typeof</item>=0A=
    <item>unchecked</item>=0A=
    <item>unsafe</item>=0A=
    <item>using</item>=0A=
    <item>virtual</item>=0A=
    <item>while</item>=0A=
    </list>=0A=
    <list name=3D"types">=0A=
	<item>bool</item>=0A=
	<item>byte</item>=0A=
	<item>char</item>=0A=
	<item>decimal</item>=0A=
	<item>enum</item>=0A=
	<item>float</item>=0A=
	<item>int</item>=0A=
	<item>long</item>=0A=
	<item>sbyte</item>=0A=
	<item>short</item>=0A=
	<item>string</item>=0A=
	<item>struct</item>=0A=
	<item>uint</item>=0A=
	<item>ulong</item>=0A=
	<item>ushort</item>=0A=
	<item>void</item>=0A=
    </list>=0A=
    <contexts>=0A=
      <context attribute=3D"0" lineEndContext=3D"0" name=3D"Normal">=0A=
        <keyword attribute=3D"1" context=3D"0" String=3D"keywords" />=0A=
        <keyword attribute=3D"2" context=3D"0" String=3D"types" />=0A=
        <Float attribute=3D"6" context=3D"0">=0A=
          <AnyChar String=3D"fF" attribute=3D"6" context=3D"0"/>=0A=
        </Float>=0A=
        <HlCOct attribute=3D"4" context=3D"0"/>=0A=
        <HlCHex attribute=3D"5" context=3D"0"/>=0A=
        <Int attribute=3D"3" context=3D"0" >=0A=
          <StringDetect attribute=3D"3" context=3D"0" String=3D"ULL" =
insensitive=3D"TRUE"/>=0A=
          <StringDetect attribute=3D"3" context=3D"0" String=3D"LUL" =
insensitive=3D"TRUE"/>=0A=
          <StringDetect attribute=3D"3" context=3D"0" String=3D"LLU" =
insensitive=3D"TRUE"/>=0A=
          <StringDetect attribute=3D"3" context=3D"0" String=3D"UL" =
insensitive=3D"TRUE"/>=0A=
          <StringDetect attribute=3D"3" context=3D"0" String=3D"LU" =
insensitive=3D"TRUE"/>=0A=
          <StringDetect attribute=3D"3" context=3D"0" String=3D"LL" =
insensitive=3D"TRUE"/>=0A=
          <StringDetect attribute=3D"3" context=3D"0" String=3D"U" =
insensitive=3D"TRUE"/>=0A=
          <StringDetect attribute=3D"3" context=3D"0" String=3D"L" =
insensitive=3D"TRUE"/>=0A=
        </Int>=0A=
        <HlCChar attribute=3D"7" context=3D"0"/>=0A=
        <DetectChar attribute=3D"8" context=3D"1" char=3D"&quot;"/>=0A=
        <Detect2Chars attribute=3D"10" context=3D"2" char=3D"/" =
char1=3D"/"/>=0A=
        <Detect2Chars attribute=3D"10" context=3D"3" char=3D"/" =
char1=3D"*"/>=0A=
        <AnyChar attribute=3D"11" context=3D"0" =
String=3D"!%&amp;()+,-&lt;=3D&gt;?[]^{|}~"/>=0A=
        <StringDetect attribute=3D"10" context=3D"8" String=3D"#if 0" =
insensitive=3D"FALSE"/>=0A=
        <RegExpr attribute=3D"12" context=3D"4" String=3D"^#"/>=0A=
      </context>=0A=
      <context attribute=3D"8" lineEndContext=3D"0" name=3D"String">=0A=
        <LineContinue attribute=3D"8" context=3D"6"/>=0A=
        <HlCStringChar attribute=3D"9" context=3D"1"/>=0A=
        <DetectChar attribute=3D"8" context=3D"0" char=3D"&quot;"/>=0A=
      </context>=0A=
      <context attribute=3D"10" lineEndContext=3D"0" name=3D"Commentar =
1">=0A=
        <RegExpr attribute=3D"3" context=3D"2" String=3D"(FIXME|TODO)" />=0A=
      </context>=0A=
      <context attribute=3D"10" lineEndContext=3D"3" name=3D"Commentar =
2">=0A=
        <RegExpr attribute=3D"3" context=3D"3" String=3D"(FIXME|TODO)" />=0A=
        <Detect2Chars attribute=3D"10" context=3D"0" char=3D"*" =
char1=3D"/"/>=0A=
      </context>=0A=
      <context attribute=3D"12" lineEndContext=3D"0" =
name=3D"Preprocessor">=0A=
        <LineContinue attribute=3D"12" context=3D"7"/>=0A=
        <RangeDetect attribute=3D"13" context=3D"4" char=3D"&quot;" =
char1=3D"&quot;"/>=0A=
        <RangeDetect attribute=3D"13" context=3D"4" char=3D"&lt;" =
char1=3D"&gt;"/>=0A=
        <Detect2Chars attribute=3D"10" context=3D"2" char=3D"/" =
char1=3D"/"/>=0A=
        <Detect2Chars attribute=3D"10" context=3D"5" char=3D"/" =
char1=3D"*"/>=0A=
      </context>=0A=
      <context attribute=3D"10" lineEndContext=3D"5" =
name=3D"Commentar/Preprocessor">=0A=
        <Detect2Chars attribute=3D"10" context=3D"4" char=3D"*" =
char1=3D"/" />=0A=
      </context>=0A=
      <context attribute=3D"0" lineEndContext=3D"1" name=3D"Some =
Context"/>=0A=
      <context attribute=3D"0" lineEndContext=3D"4" name=3D"Some =
Context2"/>=0A=
      <context attribute=3D"10" lineEndContext=3D"8">=0A=
          <RegExpr attribute=3D"3" context=3D"8" String=3D"(FIXME|TODO)" =
/>=0A=
          <RegExpr attribute=3D"10" context=3D"0" String=3D"^#endif" />=0A=
      </context>=0A=
    </contexts>=0A=
    <itemDatas>=0A=
      <itemData name=3D"Normal Text" defStyleNum=3D"dsNormal"/>=0A=
      <itemData name=3D"Keyword"  defStyleNum=3D"dsKeyword"/>=0A=
      <itemData name=3D"Data Type"  defStyleNum=3D"dsDataType"/>=0A=
      <itemData name=3D"Decimal"  defStyleNum=3D"dsDecVal"/>=0A=
      <itemData name=3D"Octal"  defStyleNum=3D"dsBaseN"/>=0A=
      <itemData name=3D"Hex"  defStyleNum=3D"dsBaseN"/>=0A=
      <itemData name=3D"Float"  defStyleNum=3D"dsFloat"/>=0A=
      <itemData name=3D"Char"  defStyleNum=3D"dsChar"/>=0A=
      <itemData name=3D"String"  defStyleNum=3D"dsString"/>=0A=
      <itemData name=3D"String Char"  defStyleNum=3D"dsChar"/>=0A=
      <itemData name=3D"Comment"  defStyleNum=3D"dsComment"/>=0A=
      <itemData name=3D"Symbol"  defStyleNum=3D"dsNormal"/>=0A=
      <itemData name=3D"Preprocessor"  defStyleNum=3D"dsOthers"/>=0A=
      <itemData name=3D"Prep. Lib"  defStyleNum=3D"dsOthers"/> =
<!--,Qt::darkYellow,Qt::yellow,false,false)); -->=0A=
    </itemDatas>=0A=
  </highlighting>=0A=
  <general>=0A=
    <comments>=0A=
      <comment name=3D"singleLine" start=3D"//" />=0A=
      <comment name=3D"multiLine" start=3D"/*" end=3D"*/" />=0A=
    </comments>=0A=
    <keywords casesensitive=3D"1" />=0A=
  </general>=0A=
</language>
------=_NextPart_000_0048_01C294A4.E04F3570--