comp.lang.ada
 help / color / mirror / Atom feed
* [OT] highlighter for ConTEXT
@ 2001-11-05 12:39 chris.danx
  2001-11-05 15:12 ` Preben Randhol
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: chris.danx @ 2001-11-05 12:39 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 2394 bytes --]

Hi,

The ConTEXT lacked a highlighter for Ada 95, (you couldn't get one at the
site) so I've created one (it's not rocket science).  Before it is submitted
I'd like to know if anyone who uses (or might use) ConTEXT has any
suggestions.  I've checked as much as possible that all the reserved words
are in there but maybe there are some I forgot to include.  If there is let
me know.

It is attached and also follows this post.  I thought about highlighting
standard types, but that maybe more trouble than it's worth.  Any thoughts?


Regards,
Chris



////////////////////////////////////////////////////////////////////////////
//
//
// Ada 95 highlighter file by Danx (willowpl@hotmail.com)
//
////////////////////////////////////////////////////////////////////////////
//


Language:               Ada 95
Filter:                 Ada 95 files (*.ads,*.adb)|*.ads;*.adb
HelpFile:
CaseSensitive:          0
LineComment:            --
BlockCommentBeg:
BlockCommentEnd:
IdentifierBegChars:     a..z A..Z
IdentifierChars:        a..z A..Z _ 0..9
NumConstBegChars:       # 0..9
NumConstChars:          0..9 abcdefABCDEF
EscapeChar:
KeyWords1:              abort abs abstract accept access aliased all and
array
                        at begin
                        body case constant declare delay delta digits do
else
                        elsif end entry exception exit for function generic
                        goto if in is limited loop mod new null
                        of or others out package pragma private procedure
protected
                        raise range record rem renames requeue
                        return reverse select separate subtype tagged task
then type
                        until use when while with xor


KeyWords2:


KeyWords3:


StringBegChar:          "
StringEndChar:          "
MultilineStrings:

UsePreprocessor:        0
CurrLineHighlighted:    0
SpaceCol:               clWindowText clWindow
Keyword1Col:            clBlue clWindow
Keyword2Col:            clMaroon clWindow
Keyword3Col:            clBlue clWindow
IdentifierCol:          clWindowText clWindow
CommentCol:             clRed clWindow
NumberCol:              clFuchsia clWindow
StringCol:              clTeal clWindow
SymbolCol:              clGray clWindow
PreprocessorCol:        clBlue clWindow
SelectionCol:           clWhite clNavy
CurrentLineCol:         clBlack clYellow


[-- Attachment #2: Ada 95.chl --]
[-- Type: application/octet-stream, Size: 1894 bytes --]

//////////////////////////////////////////////////////////////////////////////
//
// Ada 95 highlighter file by Danx (willowpl@hotmail.com)
//
//////////////////////////////////////////////////////////////////////////////


Language:               Ada 95
Filter:                 Ada 95 files (*.ads,*.adb)|*.ads;*.adb
HelpFile:
CaseSensitive:          0
LineComment:            --
BlockCommentBeg:
BlockCommentEnd:
IdentifierBegChars:     a..z A..Z
IdentifierChars:        a..z A..Z _ 0..9
NumConstBegChars:       # 0..9
NumConstChars:          0..9 abcdefABCDEF
EscapeChar:
KeyWords1:              abort abs abstract accept access aliased all and array
                        at begin
                        body case constant declare delay delta digits do else
                        elsif end entry exception exit for function generic
                        goto if in is limited loop mod new null
                        of or others out package pragma private procedure protected
                        raise range record rem renames requeue
                        return reverse select separate subtype tagged task then type
                        until use when while with xor


KeyWords2:


KeyWords3:


StringBegChar:          "
StringEndChar:          "
MultilineStrings:

UsePreprocessor:        0
CurrLineHighlighted:    0
SpaceCol:               clWindowText clWindow
Keyword1Col:            clBlue clWindow
Keyword2Col:            clMaroon clWindow
Keyword3Col:            clBlue clWindow
IdentifierCol:          clWindowText clWindow
CommentCol:             clRed clWindow
NumberCol:              clFuchsia clWindow
StringCol:              clTeal clWindow
SymbolCol:              clGray clWindow
PreprocessorCol:        clBlue clWindow
SelectionCol:           clWhite clNavy
CurrentLineCol:         clBlack clYellow


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-11-16 14:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-05 12:39 [OT] highlighter for ConTEXT chris.danx
2001-11-05 15:12 ` Preben Randhol
2001-11-05 16:45   ` chris.danx
2001-11-05 17:21 ` Jeffrey Carter
2001-11-16 14:38 ` chris.danx
2001-11-16 14:44   ` Preben Randhol

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox