Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C# » General » Downloads
 
Add your own
alternative version
Go to top

CodeDom Assistant

, 21 Sep 2007
Generating CodeDom Code By Parsing C# or VB
codedomassistant_demo.zip
CodeDomAssistant_Demo
CodeDomAssistant.exe
ICSharpCode.NRefactory.dll
RemoteLoader.dll
SciLexer.dll
ScintillaNet.dll
codedomassistant_src.zip
sln.CodeDomAssistant
CodeDomAssistant
bin
Debug
SciLexer.dll
Properties
Settings.settings
NRefactory
NRefactoryASTGenerator
AST
Project
Configuration
Resources
ICSharpCode.NRefactory.snk
Src
Ast
General
Lexer
BuildKeywords.pl
CSharp
Special
VBNet
Parser
CSharp
cs.ATG
Frames
Parser.frame
Scanner.frame
SharpCoco.exe
VBNet
VBNET.ATG
PrettyPrinter
CSharp
VBNet
Visitors
Test
General
Lexer
CSharp
VBNet
Output
CodeDOM
CSharp
VBNet
Parser
Expressions
GlobalScope
Statements
TypeLevel
RemoteLoader
Properties
ScintillaNET
Configuration
Builtin
LexerKeywordListNames
LexerStyleNames
FindReplace
Printing
Properties
Resources
DeleteHS.png
GoToNextMessage - Copy.png
GoToNextMessage.png
GoToPreviousMessage.png
LineColorHS.png
Thumbs.db
ScintillaNET.csproj.vspscc
Snippets
<?xml version="1.0" encoding="utf-8"?>
<Scintilla xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <globals>
    <!--
		<value name="comment-font">Lucida Sans Unicode</value>
		<value name="keyword-color">blue</value>
		<value name="operator-color">purple</value>		
		<value name="code-color">black</value>
	-->
  </globals>
  <style-classes>
    <!-- 
		<style-class name="jscript" key="0" fore="0x000000" back="0xFFFFFF" size="10" font="Dina" />
		-->
  </style-classes>
  <keyword-classes>
    <keyword-class name="jscript">
			abstract boolean break byte case catch char class 
			const continue debugger default delete do double else enum export extends 
			final finally float for function goto if implements import in instanceof 
			int interface long native new package private protected public 
			return short static super switch synchronized this throw throws 
			transient typeof var void volatile while with try
	</keyword-class>
	
	
    <keyword-class name="C#">
			abstract as base bool break byte case catch char checked class
			const continue decimal default delegate do double else enum
			event explicit extern false finally fixed float for foreach goto if
			implicit in int interface internal is lock long namespace new null
			object operator out override params private protected public
			readonly ref return sbyte sealed short sizeof stackalloc static
			string struct switch this throw true try typeof uint ulong
			unchecked unsafe ushort using virtual void while
	</keyword-class>
    <keyword-class name="vbscript">
			and as byref byval case call const 
			continue dim do each else elseif end error exit false for function global 
			goto if in loop me new next not nothing on optional or private public 
			redim rem resume select set sub then to true type while with 
			boolean byte currency date double integer long object single string type 
			variantisarray erase lbound ubound let empty null
			while wend abs asc ascb ascw chr chrb chrw cbool cbyte cdate cdbl cint
			clng csng cstr dateserial datevalue hex oct fix int sgn timeserial
			timevalue date time dateserial datevalue day month weekday year
			hour minute second now timeserial timevalue dim private public
			err inputbox msgbox atn cos sin tan exp log sqr randomize rnd mod is
			or xor eqv imp createobject isobject option explicit call 
			instr instrb len lenb lcase ucase left leftb mid midb right
			rightb space strcomp string ltrim rtrim trim isarray isdate isempty
			isnull isnumeric isobject vartype
	</keyword-class>
    <keyword-class name="VB.Net">		
			addhandler addressof andalso alias and ansi as assembly auto boolean
			byref byte byval call case catch cbool cbyte cchar cdate cdec cdbl char cint class
			clng cobj const cshort csng cstr ctype date decimal declare default delegate dim do double
			each else elseif end enum erase error event exit false finally for friend function get
			gettype goto  handles if implements imports in inherits integer interface is let lib like long
			loop me mod module mustinherit mustoverride mybase myclass namespace new
			next not nothing notinheritable notoverridable object on option optional or
			orelse overloads overridable overrides paramarray preserve private property protected public
			raiseevent readonly redim rem removehandler resume return select set shadows
			shared short single static step stop string structure sub synclock then throw to true try
			typeof unicode until variant when while with withevents writeonly xor	
	</keyword-class>
    <keyword-class name="sql"> 
			absolute action add admin after aggregate 
			alias all allocate alter and any are array as asc 
			assertion at authorization 
			before begin bigint binary bit blob boolean both breadth by 
			call cascade cascaded case cast catalog char character 
			check class clob close collate collation column commit 
			completion connect connection constraint constraints 
			constructor continue corresponding create cross cube current 
			current_date current_path current_role current_time current_timestamp 
			current_user cursor cycle data date datetime day deallocate dec decimal declare default 
			deferrable deferred delete depth deref desc describe descriptor 
			destroy destructor deterministic dictionary diagnostics disconnect 
			distinct domain double drop dynamic each else end end-exec equals escape every except 
			exception exec execute external false fetch first float for foreign found from free full 
			function general get global go goto grant group grouping 
			having host hour identity ignore image immediate in indicator initialize initially 
			inner inout input insert instead int integer intersect interval 
			into is isolation iterate join key language large last lateral leading left less level like 
			limit local localtime localtimestamp locator map match minute modifies modify module month money
			names national natural nchar nclob new next no none 
			not ntext null numeric nvarchar object of off old on only open operation option 
			or order ordinality out outer output pad parameter parameters partial path postfix precision prefix 
			preorder prepare preserve primary prior privileges procedure public 
			read reads real recursive ref references referencing relative 
			restrict result return returns revoke right role rollback rollup routine row rows 
			savepoint schema scroll scope search second section select 
			sequence session session_user set sets size smalldatetime smallint smallmoney some space 
			specific specifictype sql sqlexception sqlstate sql_variant sqlwarning start 
			state statement static structure system_user table temporary terminate text than then time timestamp 
			timezone_hour timezone_minute tinyint to trailing transaction translation 
			treat trigger true under union unique uniqueidentifier unknown unnest update usage user using 
			value values varchar variable varying view when whenever where with without work write year zone 
    </keyword-class>
    <keyword-class name="JetSQL"> 
			long byte currency datetime decimal ieeedouble text integer memo longbinary guid ieeesingle text bit as
			single, double, create proc insert into delete update values from where select 
    </keyword-class>    
    <keyword-class name="php">          
			and argv as argc break case cfunction class continue declare default do 
			die echo else elseif empty enddeclare endfor endforeach endif endswitch 
			endwhile e_all e_parse e_error e_warning eval exit extends false for 
			foreach function global http_cookie_vars http_get_vars http_post_vars 
			http_post_files http_env_vars http_server_vars if include include_once 
			list new not null old_function or parent php_os php_self php_version 
			print require require_once return static switch stdclass this true var 
			xor virtual while __file__ __line__ __sleep __wakeup
     </keyword-class>
     
     <keyword-class name="MSSQL-Statements">
		action add all alter and any as asc authorization 
		backup begin between break browse bulk by 
		cascade case check checkpoint close clustered coalesce collate column commit committed compute confirm constraint contains containstable 
		continue controlrow convert create cross current current_date current_time current_timestamp current_user cursor 
		database dbcc deallocate declare default delete deny desc disable disk distinct distributed double drop dummy dump 
		else enable end errlvl errorexit escape except exec execute exists exit 
		fetch file fillfactor floppy for foreign forward_only freetext freetexttable from full function 
		go goto grant group 
		having holdlock 
		identity identity_insert identitycol if in index inner insert intersect into is isolation 
		join 
		key kill 
		left level like lineno load 
		mirrorexit move 
		national no nocheck nolock nonclustered not nounload null nullif 
		of off offsets on once only open opendatasource openquery openrowset option or order outer output over 
		percent perm permanent pipe plan precision prepare primary print privileges proc procedure processexit public 
		raiserror read readtext read_only reconfigure recovery references repeatable replication restore restrict return returns revoke right rollback rowcount rowguidcol rule 
		save schema select serializable session_user set setuser shutdown some statistics stats system_user 
		table tape temp temporary textsize then to top tran transaction trigger truncate tsequal 
		uncommitted union unique update updatetext use user 
		values varying view 
		waitfor when where while with work writetext     
     </keyword-class>
     <keyword-class name="MSSQL-Datatypes">
			bigint binary bit 
			char character 
			datetime dec decimal 
			float 
			image int integer 
			money 
			nchar ntext numeric nvarchar 
			real 
			smalldatetime smallint smallmoney sql_variant sysname 
			text timestamp tinyint 
			uniqueidentifier 
			varbinary varchar       
     </keyword-class>
     <keyword-class name="MSSQL-SystemTables">
		deleted 
		inserted 
		sysallocations sysalternates sysaltfiles syscacheobjects syscharsets syscolumns syscomments sysconfigures sysconstraints syscurconfigs syscursorcolumns syscursorrefs 
		syscursors syscursortables sysdatabases sysdepends sysdevices sysfilegroups sysfiles sysfiles1 sysforeignkeys sysfulltextcatalogs sysindexes sysindexkeys syslanguages 
		syslockinfo syslocks syslogins sysmembers sysmessages sysobjects sysoledbusers sysperfinfo syspermissions sysprocesses sysprotects sysreferences 
		sysremote_catalogs sysremote_column_privileges sysremote_columns 
		sysremote_foreign_keys 
		sysremote_indexes 
		sysremote_primary_keys sysremote_provider_types 
		sysremote_schemata sysremote_statistics 
		sysremote_table_privileges sysremote_tables sysremote_views 
		sysremotelogins 
		syssegments 
		sysservers 
		systypes 
		sysusers
		sysxlogins     
     </keyword-class>
     <keyword-class name="MSSQL-GlobalVariables">
		connections cpu_busy cursor_rows datefirst dbts 
		error fetch_status identity idle io_busy langid language 
		lock_timeout max_connections max_precision nestlevel options 
		pack_received pack_sent packet_errors procid remserver rowcount 
		servername servicename spid textsize timetickstotal_errors total_read total_write trancount version
     </keyword-class>     
     <keyword-class name="MSSQL-Functions">
		abs acos app_name ascii asin atan atn2 avg 
		binary_checksum 
		case cast ceiling char charindex checksum checksum_agg 
		coalesce collationproperty col_length col_name columns_updated columnproperty convert cos cot count count_big current_timestamp current_user cursor_status 
		databaseproperty databasepropertyex datalength dateadd datediff datename datepart day db_id db_name degrees difference 
		exp 
		file_id file_name filegroup_id filegroup_name filegroupproperty fileproperty floor 
		fn_helpcollations fn_listextendedproperty fn_servershareddrives fn_trace_geteventinfo fn_trace_getfilterinfo fn_trace_getinfo fn_trace_gettable fn_virtualfilestats 
		formatmessage fulltextcatalogproperty fulltextserviceproperty 
		getansinull getdate getutcdate grouping 
		has_dbaccess host_id host_name 
		ident_current ident_incr ident_seed index_col indexkey_property indexproperty is_member is_srvrolemember isdate isnull isnumeric 
		left len log log10 lower ltrim 
		max min month 
		nchar newid nullif 
		object_id object_name objectproperty 
		parsename patindex permissions pi power 
		quotename 
		radians rand replace replicate reverse right round rowcount_big rtrim 
		scope_identity serverproperty sessionproperty session_user sign sin soundex space sqare sql_variant_property 
		sqrt stats_date stdev stdevp str stuff substring sum suser_sid suser_sname system_user 
		tan typeproperty 
		unicode upper user_id user_name 
		var varp 
		year
     </keyword-class>       
     
  </keyword-classes>
  <languages>
	 <language name="TaggedC#">
      <lexer name="javas" key="4" />
      <file-extensions>csgen</file-extensions>
      <use-keywords>
        <keyword key="0" class="" />
        <keyword key="1" class="C#" />
        <keyword key="2" class="" />
        <keyword key="3" class="" />
        <keyword key="4" class="" />
        <keyword key="5" class="" />
     </use-keywords>
     <use-styles>
        <style name="DEFAULT" key="0" back="white" fore="black" />
        <style name="ASP" key="15" back="yellow" fore="black" />
        <style name="ASPAT" key="16" back="yellow" fore="black" />
        <style name="DEFAULT-STYLE" key="32" back="white" fore="black" />
        <style name="STYLE_LINENUMBER" key="33" back="white" fore="black" />
        <!-- C# -->
        <style name="START" key="55" />
        <style name="DEFAULT" key="56" back="0xCFCFEF" fore="0x000000" bold="true" />
        <style name="COMMENT" key="57" back="0xCFCFEF" fore="0x007F00" font="Dina" bold="true" />
        <style name="COMMENT_LINE" key="58" back="0xCFCFEF" fore="0x007F00" font="Dina" bold="true" />
        <style name="DOC_COMMENT" key="59" back="0xCFCFEF" fore="0x7F7F7F" font="Dina" bold="true" />
        <style name="NUMBER" key="60" back="0xCFCFEF" fore="0x007F7F" />
        <style name="WORD" key="61" back="0xCFCFEF" fore="0x000080" />
        <style name="KEYWORD" key="62" back="0xCFCFEF" fore="0x00007F" bold="true" />
        <style name="DOUBBLE_QUOTE_STRING" key="63" back="0xCFCFEF" fore="0x7F007F" />
        <style name="SINGLE_QUOTE_STRING" key="64" back="0xCFCFEF" fore="0x7F007F" bold="true" />
        <style name="SYMBOLS" key="65" back="0xCFCFEF" fore="black" />
        <style name="EOL" key="66" back="0xCFCFEF" fore="0xBFBBB0" />
        <style name="REGEX" key="67" back="0x7F7FBF" fore="0xFFBBB0" />
      </use-styles>
    </language>
    <language name="TaggedJScript">
      <lexer name="javas" key="4" />
      <file-extensions>jgen</file-extensions>
      <use-keywords>
        <keyword key="0" class="" />
        <keyword key="1" class="jscript" />
        <keyword key="2" class="" />
        <keyword key="3" class="" />
        <keyword key="4" class="" />
        <keyword key="5" class="" />
      </use-keywords>
      <use-styles>
        <style name="DEFAULT" key="0" back="white" fore="black" />
        <style name="ASP" key="15" back="yellow" fore="black" />
        <style name="ASPAT" key="16" back="yellow" fore="black" />
        <style name="DEFAULT-STYLE" key="32" back="white" fore="black" />
        <style name="STYLE_LINENUMBER" key="33" back="white" fore="black" />
        <!-- JScript -->
        <style name="START" key="55" />
        <style name="DEFAULT" key="56" back="0xCFCFEF" fore="0x000000" bold="true" />
        <style name="COMMENT" key="57" back="0xCFCFEF" fore="0x007F00" font="Dina" bold="true" />
        <style name="COMMENT_LINE" key="58" back="0xCFCFEF" fore="0x007F00" font="Dina" bold="true" />
        <style name="DOC_COMMENT" key="59" back="0xCFCFEF" fore="0x7F7F7F" font="Dina" bold="true" />
        <style name="NUMBER" key="60" back="0xCFCFEF" fore="0x007F7F" />
        <style name="WORD" key="61" back="0xCFCFEF" fore="0x000080" />
        <style name="KEYWORD" key="62" back="0xCFCFEF" fore="0x00007F" bold="true" />
        <style name="DOUBBLE_QUOTE_STRING" key="63" back="0xCFCFEF" fore="0x7F007F" />
        <style name="SINGLE_QUOTE_STRING" key="64" back="0xCFCFEF" fore="0x7F007F" bold="true" />
        <style name="SYMBOLS" key="65" back="0xCFCFEF" fore="black" />
        <style name="EOL" key="66" back="0xCFCFEF" fore="0xBFBBB0" />
        <style name="REGEX" key="67" back="0x7F7FBF" fore="0xFFBBB0" />
      </use-styles>
    </language>
    <language name="TaggedVBScript">
      <lexer name="asp" key="29" />
      <file-extensions>vbgen</file-extensions>
      <use-keywords>
        <keyword key="2" class="vbscript" />
      </use-keywords>
      <use-styles>
        <style name="DEFAULT" key="0" back="white" fore="black" />
        <style name="ASP" key="15" back="yellow" fore="black" />
        <style name="ASPAT" key="16" back="yellow" fore="black" />
        <style name="DEFAULT-STYLE" key="32" back="white" fore="black" />
        <style name="STYLE_LINENUMBER" key="33" back="white" fore="black" />
        <!-- VBScript -->
        <style name="START" key="80" />
        <style name="DEFAULT" key="81" back="0xCFCFEF" fore="0x000000" />
        <style name="COMMENTLINE" key="82" back="0xCFCFEF" fore="0x008000" font="Dina" bold="true" />
        <style name="NUMBER" key="83" back="0xCFCFEF" fore="0x008080" />
        <style name="WORD" key="84" back="0xCFCFEF" fore="0x000080" bold="true" />
        <style name="STRING" key="85" back="0xCFCFEF" fore="DarkRed" />
        <style name="IDENTIFIER" key="86" back="0xCFCFEF" fore="0x000080" />
        <style name="STRINGEOL" key="87" back="0x7F7FBF" fore="0x000080" />
      </use-styles>
     </language>
    <language name="TaggedVB.Net">
      <lexer name="asp" key="29" />
      <file-extensions>vbgen</file-extensions>
      <use-keywords>
        <keyword key="2" class="VB.Net" />
      </use-keywords>
      <use-styles>
        <style name="DEFAULT" key="0" back="white" fore="black" />
        <style name="ASP" key="15" back="yellow" fore="black" />
        <style name="ASPAT" key="16" back="yellow" fore="black" />
        <style name="DEFAULT-STYLE" key="32" back="white" fore="black" />
        <style name="STYLE_LINENUMBER" key="33" back="white" fore="black" />
        <!-- VB.Net -->
        <style name="START" key="80" />
        <style name="DEFAULT" key="81" back="0xCFCFEF" fore="0x000000" />
        <style name="COMMENTLINE" key="82" back="0xCFCFEF" fore="0x008000" font="Dina" bold="true" />
        <style name="NUMBER" key="83" back="0xCFCFEF" fore="0x008080" />
        <style name="WORD" key="84" back="0xCFCFEF" fore="0x000080" bold="true" />
        <style name="STRING" key="85" back="0xCFCFEF" fore="DarkRed" />
        <style name="IDENTIFIER" key="86" back="0xCFCFEF" fore="0x000080" />
        <style name="STRINGEOL" key="87" back="0x7F7FBF" fore="0x000080" />
      </use-styles>
     </language>
     <language name="C#">
      <lexer name="cpp" key="3" />
      <file-extensions>cs</file-extensions>
      <use-keywords>
        <keyword key="0" class="C#" />
      </use-keywords>
      <use-styles>
        <style name="DEFAULT" key="0" back="white" fore="black" />
        <style name="COMMENT" key="1" back="white" fore="DarkOliveGreen" />
        <style name="COMMENTLINE" key="2" back="white" fore="DarkOliveGreen" />
        <style name="COMMENTDOC" key="3" back="white" fore="DarkOliveGreen" />
        <style name="NUMBER" key="4" back="white" fore="DarkViolet" />
        <style name="KEYWORD" key="5" back="white" fore="DarkBlue" bold="true" />
        <style name="STRING" key="6" back="white" fore="Maroon" bold="true" />
        <style name="CHARACTER" key="7" back="white" fore="black" />
        <style name="UUID" key="8" back="white" fore="DarkGreen" />
        <style name="PREPROCESSOR" key="9" back="white" fore="megenta" />
        <style name="OPERATOR" key="10" back="white" fore="Olive" />
        <style name="IDENTIFIER" key="11" back="white" fore="black" />
        <style name="STRINGEOL" key="12" back="white" fore="black" />
        <style name="VERBATIM" key="13" back="white" fore="black" />
        <style name="REGEX" key="14" back="white" fore="purple" />
        <style name="COMMENTLINEDOC" key="15" back="white" fore="black" />
        <style name="WORD2" key="16" back="white" fore="black" />
        <style name="COMMENTDOCKEYWORD" key="17" back="white" fore="black" />
        <style name="COMMENTDOCKEYWORDERROR" key="18" back="white" fore="black" />
        <style name="STYLE_LINENUMBER" key="33" back="white" fore="black" />
        <style name="DOCUMENT_DEFAULT" key="32" back="white" fore="black" />
      </use-styles>
    </language>
    <language name="JScript">
      <lexer name="cpp" key="3" />
      <file-extensions>jgen</file-extensions>
      <use-keywords>
        <keyword key="0" class="jscript" />
      </use-keywords>
      <use-styles>
        <style name="DEFAULT" key="0" back="0xCFCFEF" fore="black" />
        <style name="COMMENT" key="1" back="0xCFCFEF" fore="0x007F00" font="Dina" bold="true" />
        <style name="COMMENTLINE" key="2" back="0xCFCFEF" fore="0x007F00" font="Dina" bold="true" />
        <style name="COMMENTDOC" key="3" back="0xCFCFEF" fore="0x007F00" font="Dina" bold="true" />
        <style name="NUMBER" key="4" back="0xCFCFEF" fore="0x007F7F" />
        <style name="KEYWORD" key="5" back="0xCFCFEF" fore="0x00007F" bold="true" />
        <style name="STRING" key="6" back="0xCFCFEF" fore="0x7F007F" bold="true" />
        <style name="CHARACTER" key="7" back="0xCFCFEF" fore="black" />
        <style name="UUID" key="8" back="0xCFCFEF" fore="DarkGreen" />
        <style name="PREPROCESSOR" key="9" back="0xCFCFEF" fore="megenta" />
        <style name="OPERATOR" key="10" back="0xCFCFEF" fore="black" />
        <style name="IDENTIFIER" key="11" back="0xCFCFEF" fore="black" />
        <style name="STRINGEOL" key="12" back="0xCFCFEF" fore="black" />
        <style name="VERBATIM" key="13" back="0xCFCFEF" fore="black" />
        <style name="REGEX" key="14" back="0xCFCFEF" fore="purple" />
        <style name="COMMENTLINEDOC" key="15" back="0xCFCFEF" fore="black" />
        <style name="WORD2" key="16" back="0xCFCFEF" fore="black" />
        <style name="COMMENTDOCKEYWORD" key="17" back="0xCFCFEF" fore="black" />
        <style name="COMMENTDOCKEYWORDERROR" key="18" back="0xCFCFEF" fore="black" />
        <style name="STYLE_LINENUMBER" key="33" back="0xCFCFEF" fore="black" />
        <style name="DOCUMENT_DEFAULT" key="32" back="0xCFCFEF" fore="black" />
      </use-styles>
    </language>
    <language name="VB.Net">
      <lexer name="vb" key="8" />
      <file-extensions>vbgen</file-extensions>
      <use-keywords>
        <keyword key="0" class="VB.Net" />
      </use-keywords>
      <use-styles>
        <style name="DEFAULT" key="0" back="black" fore="0x00ff00" />
        <style name="COMMENT" key="1" back="black" fore="cyan" font="Dina" bold="true" />
        <style name="NUMBER" key="2" back="black" fore="0xc0c000" />
        <style name="KEYWORD" key="3" back="black" fore="0xffffff" />
        <style name="STRING" key="4" back="black" fore="0xff0000" />
        <style name="PREPROCESSOR" key="5" back="black" fore="0x00ff00" />
        <style name="OPERATOR" key="6" back="black" fore="0xffff80" />
        <style name="IDENTIFIER" key="7" back="black" fore="0x00ff00" />
        <style name="DATE" key="8" back="black" fore="0x00FF00" />
        <style name="DOCUMENT_DEFAULT" key="32" fore="green" back="black" />
        <style name="STYLE_LINENUMBER" key="33" fore="green" back="black" />
      </use-styles>
    </language>
    <language name="VBScript">
      <lexer name="asp" key="8" />
      <file-extensions>vbgen</file-extensions>
      <use-keywords>
        <keyword key="0" class="vbscript" />
      </use-keywords>
      <use-styles>
        <style name="DEFAULT" key="0" back="0xCFCFEF" fore="black" />
        <style name="COMMENT" key="1" back="0xCFCFEF" fore="0x008000" font="Dina" bold="true" />
        <style name="NUMBER" key="2" back="0xCFCFEF" fore="0x008080" />
        <style name="KEYWORD" key="3" back="0xCFCFEF" fore="0x000080" bold="true" />
        <style name="STRING" key="4" back="0xCFCFEF" fore="DarkRed" />
        <style name="PREPROCESSOR" key="5" back="0xCFCFEF" fore="black" />
        <style name="OPERATOR" key="6" back="0xCFCFEF" fore="black" />
        <style name="IDENTIFIER" key="7" back="0xCFCFEF" fore="0x000080" />
        <style name="DATE" key="8" back="0xCFCFEF" fore="black" />
        <style name="DOCUMENT_DEFAULT" key="32" back="0xCFCFEF" fore="black" />
        <style name="STYLE_LINENUMBER" key="33" back="0xCFCFEF" fore="black" />
      </use-styles>
    </language>
    <language name="PHP">
      <lexer name="php" key="4" />
      <file-extensions>php</file-extensions>
      <use-keywords>
        <keyword key="4" class="php" />
      </use-keywords>
      <use-styles>
        <style name="DEFAULT" key="0" back="white" fore="black" />
        <style name="PHP" key="18" back="yellow" fore="black" />
        <style name="DEFAULT-STYLE" key="32" back="white" fore="black" />
        <style name="STYLE_LINENUMBER" key="33" back="white" fore="black" />
        <!-- Embedded PHP -->
        <style name="Default" key="118" back="0xCFCFEF" fore="0x000033" />
        <style name="Double quoted String" key="119" back="0xCFCFEF" fore="0x007F00" />
        <style name="Single quoted string" key="120" back="0xCFCFEF" fore="0x009F00" />
        <style name="Keyword" key="121" back="0xCFCFEF" fore="0x7F007F" italics="true" bold="true" />
        <style name="Number" key="122" back="0xCFCFEF" fore="0xCC9900" />
        <style name="Variable" key="123" back="0xCFCFEF" fore="0x00007F" />
        <style name="Comment" key="124" back="0xCFCFEF" fore="0x999999" />
        <style name="One line comment" key="125" back="0xCFCFEF" fore="0x666666" italics="true" />
        <style name="PHP variable in double quoted string" key="126" back="0xCFCFEF" fore="0x00007F" />
        <style name="PHP operator" key="127" back="0xCFCFEF" fore="0x000000" />
      </use-styles>
    </language>
    <language name="MSSQL">
      <lexer name="MSSQL" key="55" />
      <file-extensions>sql prc</file-extensions>
      <use-keywords>
        <keyword key="0" class="MSSQL-Statements" />
        <keyword key="1" class="MSSQL-Datatypes" />
        <keyword key="2" class="MSSQL-SystemTables" />
        <keyword key="3" class="MSSQL-GlobalVariables" />
        <keyword key="4" class="MSSQL-Functions" />                                
      </use-keywords>
      <use-styles>
        <style name="DEFAULT" key="0" fore="black" />
        <style name="COMMENT" key="1" fore="0x00bb00" />
        <style name="COMMENTLINE" key="2" fore="0x00bb00" />
        <style name="NUMBER" key="3" fore="0xFF8000" />
        <style name="STRING" key="4" fore="Red" />        
        <style name="OPERATOR" key="5" fore="DarkRed" />      
        <style name="IDENTIFIER" key="6" fore="Black" />    
        <style name="VARIABLE" key="7" fore="0x8000ff" />       
        <style name="COLUMN_NAME" key="8" fore="0x0040ff" />               
        <style name="STATEMENT" key="9" fore="0x0040ff" />
        <style name="DATATYPE" key="10" fore="0x0080ff" />  
        <style name="SYSTABLE" key="11" fore="0x00bb00" bold="true"/>  
        <style name="GLOBAL_VARIABLES" key="12" fore="Magenta" />        
        <style name="FUNCTION" key="13" fore="Magenta" />
        <style name="DOCUMENT_DEFAULT" key="32" fore="Black"  />
        <style name="STYLE_LINENUMBER" key="33"  />
				<style name="STYLE_BRACELIGHT" key="34"  fore="0xff0000" bold="true" />
      </use-styles>
    </language>
    <language name="SQL">
      <lexer name="sql" key="7" />
      <file-extensions>sql prc</file-extensions>
      <use-keywords>
        <keyword key="0" class="sql" />
      </use-keywords>
      <use-styles>
        <style name="WHITESPACE" key="0" back="0xFFFFFF" fore="0x000000" />
        <style name="COMMENT" key="1" back="0xFFFFFF" fore="DarkGreen" />
        <style name="COMMENTLINE" key="2" back="0xFFFFFF" fore="DarkGreen" />
        <style name="COMMENTDOC" key="3" back="0xFFFFFF" fore="DarkGreen" />
        <style name="NUMBER" key="4" fore="green" />
        <style name="KEYWORD" key="5" fore="0x0066FF" bold="true" />
        <style name="DQSTRING" key="6" fore="red" back="yellow" />
        <style name="SQSTRING" key="7" fore="green" />
        <style name="SYMBOLS" key="8" fore="orange" />
        <style name="PREPROCESSOR" key="9" fore="Magenta" />
        <style name="OPERATOR" key="10" fore="blue" />
        <style name="IDENTIFIER" key="11" fore="black" />
        <style name="STRINGEOL" key="12" fore="red" />
        <style name="DOCUMENT_DEFAULT" key="32" back="white" fore="black" />
        <style name="STYLE_LINENUMBER" key="33" back="white" fore="black" />
      </use-styles>
    </language>    
    <language name="JetSQL">
      <lexer name="sql" key="7" />
      <file-extensions>sql prc</file-extensions>
      <use-keywords>
        <keyword key="0" class="JetSQL" />
      </use-keywords>
      <use-styles>
        <style name="WHITESPACE" key="0" back="0xFFFFFF" fore="0x000000" />
        <style name="COMMENT" key="1" back="0xFFFFFF" fore="DarkGreen" />
        <style name="COMMENTLINE" key="2" back="0xFFFFFF" fore="DarkGreen" />
        <style name="COMMENTDOC" key="3" back="0xFFFFFF" fore="DarkGreen" />
        <style name="NUMBER" key="4" fore="green" />
        <style name="KEYWORD" key="5" fore="0x0066FF" bold="true" />
        <style name="DQSTRING" key="6" fore="red" back="yellow" />
        <style name="SQSTRING" key="7" fore="green" />
        <style name="SYMBOLS" key="8" fore="orange" />
        <style name="PREPROCESSOR" key="9" fore="Magenta" />
        <style name="OPERATOR" key="10" fore="blue" />
        <style name="IDENTIFIER" key="11" fore="black" />
        <style name="STRINGEOL" key="12" fore="red" />
        <style name="DOCUMENT_DEFAULT" key="32" back="white" fore="black" />
        <style name="STYLE_LINENUMBER" key="33" back="white" fore="black" />
      </use-styles>
    </language>    
    <language name="hypertext">
      <!-- *** Sample Only. ***-->
      <!-- Settings for coloring and handling Hypertext -->
      <lexer name="html" key="0" />
      <file-extensions>html htm</file-extensions>
      <use-keywords>
        <keyword key="0" class="hypertext" />
        <keyword key="1" class="javascript" />
        <keyword key="2" class="vbscript" />
        <keyword key="3" class="python" />
        <keyword key="4" class="php" />
        <keyword key="5" class="sgml-dtd" />
      </use-keywords>
      <use-styles>
        <style name="DEFAULT" key="0" class="default" />
        <!-- ommited for berevity :) -->
      </use-styles>
    </language>
  </languages>
</Scintilla>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

raygilbert
Web Developer
Australia Australia
No Biography provided

| Advertise | Privacy | Mobile
Web02 | 2.8.140926.1 | Last Updated 21 Sep 2007
Article Copyright 2007 by raygilbert
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid