File: AddingMoreLexers.txt

package info (click to toggle)
mysql-gui-tools 5.0r12-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 105,540 kB
  • ctags: 50,897
  • sloc: sql: 348,439; pascal: 285,780; cpp: 94,578; ansic: 90,768; objc: 33,761; sh: 25,629; xml: 10,924; yacc: 10,755; java: 9,986; php: 2,806; python: 2,068; makefile: 1,945; perl: 3
file content (24 lines) | stat: -rw-r--r-- 848 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
If you wish to add those lexers at runtime, use AddLexer
(the function above this).
That function checks whether a lexer already exists,
and if not, adds it to the list.

These will show up in the OptionsDialog (when you use Add language)
when the dialog is called after they are added.

NOTE: As the scintilla control treats the lexers casesensitive, 
this is also casesensitive.

If you want to show them at designtime, instead of the above do this:

Open the file MoreLexers.inc and add a statement like this:
Add('lexername');

Recompile, and you're done.. (BUILD, as delphi doesn't check dates on
includes it seems)

Add more lexernames there, if there are more lexers in your version
of 'SciLexer.Dll', i.e new version, custombuilt or other..

All lexers which are added there is also selectable from within the IDE.