Adding PLM syntax highlighting and procedure
recognition to CodeWright 6.0 (32-bit): NOTE:
Make a backup copy of these files before chaning them.
To file CWRIGHT.INI add
the lines to the appropriate sections
To section [Compiler]
CompilerNewExt=.plm
CompilerNewExt=.p38
To section [Extension]
ExtColorsAssoc='.ext',5
ExtChromaLexer='.ext','PLM'
ExtSetDelimiters=.ext,^A-Za-z0-9_$
ExtColorsAssoc='.p38',5
ExtChromaLexer='.p38','PLM'
ExtSetDelimiters=.p38,^A-Za-z0-9_$
ExtColorsAssoc='.plm',5
ExtChromaLexer='.plm','PLM'
ExtSetDelimiters=.plm,^A-Za-z0-9_$
ExtColorsAssoc='.lit',5
ExtChromaLexer='.lit','PLM'
ExtSetDelimiters=.lit,^A-Za-z0-9_$
ExtAlias=.p38,.plm
ExtAlias=.lit,.plm
ExtAlias=.ext,.plm
To section [Symbols]
ExtDelOutlineParser=plm
ExtAddOutlineParser=plm,1,"Function/Procedure",0x0000001f,"$",^[
\t]*[\$a-zA-Z0-9_]+\c[ \t]*\:[ \t]*procedure
To file CWRIGHT.INI, add
this whole section
[Extension.plm]
ExtSetBufFlags=0x8800048c,0x301cff
BufSetMaxVirtualLines=0x0019
BufSetMaxTabCol=0x00c8
BufSetAutoIndentMode=0x0000
ExtSetCodeSenseFlags=.plm,0x200001ef
BufSetMarginColumns=1,72
BufSetTabStr='3 5 7 9'
BufSetBackupSpec=''
ExtSetBorderElements='.plm','/*','*******','*','*','','*','*******','*/','/*','*/',0
ExtSetTemplateMacro=2,'@'
ExtSetTemplateMacro=1,'\t'
ExtSetTemplateMacro=0,'\n'
ExtSetStyle=.plm,1
To file LEXER.INI, add this
whole section to the end of the file
[ChromaLexer-PLM]
ChromaFlags=CHROMA_CF_MAIN,0x00030002,1
ChromaFlags=CHROMA_CF_STRING,0x00000000,1
ChromaIdentifiers='_A-Za-z$ _A-Za-z0-9$'
ChromaIdentifiers='_A-Za-z$ _A-Za-z0-9$'
ChromaAddComment=0x00002000,0,"/*","*/"
ChromaAddWords=CHROMA_WT_KEYWORD address at based by byte
call case charint data declare disable do dword else
enable end
ChromaAddWords=CHROMA_WT_KEYWORD eof external go goto
halt hword if initial integer interrupt label literally
longint offset pointer procedure
ChromaAddWords=CHROMA_WT_KEYWORD public qword real
reentrant return selector shortint structure then to
while word
ChromaAddWords=CHROMA_WT_PREPROC $code 0 $compact 0 $cond
0 $debug 0 $eject 0 $else 0 $elseif 0 $endif 0 $flat 0
$if 0 $include 0 $interface 0 $large 0 $leftmargin 0
$list 0 $medium 0
ChromaAddWords=CHROMA_WT_PREPROC $mod486 0 $nocode 0
$nocond 0 $nodebug 0 $nolist 0 $noobject 0 $nooverflow 0
$nopaging 0 $noprint 0 $nosymbols 0 $notype 0 $noxref 0
$object 0 $optimize 0 $overflow 0 $pagelength 0
ChromaAddWords=CHROMA_WT_PREPROC $pagewidth 0 $paging 0
$print 0 $ram 0 $reset 0 $restore 0 $rom 0 $save 0 $set 0
$small 0 $subtitle 0 $symbols 0 $title 0 $type 0 $word16
0 $word32 0
ChromaAddWords=CHROMA_WT_PREPROC $xref 0
|