Last update January 16, 2008

Editor Support /
Code Wright Lexer



  • Click on "Edit" and copy the text below between "[[Code]" and the closing "]" to the clipboard.
  • Add the following section to LEXER.INI in the CW directory:
[ChromaLexer-D]
ChromaFlags=CHROMA_CF_MAIN,0x02000001,1
ChromaFlags=CHROMA_CF_STRING,0x00000000,1
ChromaFlags=CHROMA_CF_STR_ESC_CHARS,0x005c0000,1
ChromaIdentifiers='_A-Za-z _A-Za-z0-9'
ChromaBraceChars='{}'
ChromaAddComment=0x00001000,0,'//',''
ChromaAddComment=0x00002000,0,'/+','+/'
ChromaAddComment=0x00002000,0,'/*','*/'
ChromaAddWords=CHROMA_WT_KEYWORD abstract alias align asm assert auto bit
body break byte case cast catch cdouble cent cfloat
ChromaAddWords=CHROMA_WT_KEYWORD char class const continue creal dchar debug
default delegate delete deprecated do double else enum export
ChromaAddWords=CHROMA_WT_KEYWORD extern false final finally float for
function goto idouble if ifloat import in inout int interface
ChromaAddWords=CHROMA_WT_KEYWORD invariant ireal long new null out override
private protected public real return short static struct super
ChromaAddWords=CHROMA_WT_KEYWORD switch synchronized this throw true try
typedef ubyte ucent uint ulong union ushort version void volatile
ChromaAddWords=CHROMA_WT_KEYWORD wchar while with
ChromaAddWords=CHROMA_WT_OPERATOR ! 0 !< 0 !<= 0 !<> 0 !<>= 0 != 0 !== 0 !>
0 !>= 0 $ 0 % 0 %= 0 & 0 && 0 &= 0 ( 1
ChromaAddWords=CHROMA_WT_OPERATOR ) 1 * 0 *= 0 + 0 ++ 0 += 0 , 1 - 0 -- 0 -=
0 . 1 .. 1 ... 1 / 0 /= 0 : 0
ChromaAddWords=CHROMA_WT_OPERATOR ; 0 < 0 << 0 <<= 0 <= 0 <> 0 <>= 0 = 0 ==
0 === 0 > 0 >= 0 >> 0 >>= 0 >>> 0 >>>= 0
ChromaAddWords=CHROMA_WT_OPERATOR ? 0 [ 0 ] 0 ^ 0 ^= 0 { 1 | 0 |= 0 || 0 } 1
~ 0 ~= 0
ChromaSetWordRegex=CHROMA_WT_PREPROC,'__[a-z]+','',0xf
ChromaSetWordRegex=CHROMA_WT_STRING,'(`.*`|[rx]?\"((\\\\\")|[^\"])*\"|\\\x[0
-9A-Z][0-9A-Z]([0-9A-Z][0-9A-Z])?)','',0x3

It may neither be complete nor flawless, but for my first tests it works -- Christian

Source: Christian Kaiser ( NG:D/17996, Oct 2003).

Link: http://www.borland.com/codewright/

FrontPage | News | TestPage | MessageBoard | Search | Contributors | Folders | Index | Help | Preferences | Edit

Edit text of this page (date of last change: January 16, 2008 23:08 (diff))