Hi, all.
I've got a syntax highlighting definition file that includes keywords such as @@version and @@fetch_status that aren't actually getting highlighted.
Any ideas on why it isn't working? Here's the [syntax] and [keywords 5] portion of the syntax def file:
[Syntax]
Namespace1 = 6
IgnoreCase = Yes
InitKeyWordChars = A-Za-z_
KeyWordChars = A-Za-z0-9_
BracketChars = [()]
OperatorChars = -+*/<>!~%^&|=
SyntaxStart =
SyntaxEnd =
CommentStart = /*
CommentEnd = */
CommentStartAlt =
CommentEndAlt =
SingleComment = --
SingleCommentCol =
SingleCommentAlt =
SingleCommentColAlt =
StringStart = "
StringEnd = "
StringAlt =
StringEsc = \
CharStart = '
CharEnd = '
CharEsc = \
[Keywords 5]
@@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
@@TIMETICKS
@@TOTAL_ERRORS
@@TOTAL_READ
@@TOTAL_WRITE
@@TRANCOUNT
@@VERSION
Syntax Highlighting for @@keywords not working
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Re: Syntax Highlighting for @@keywords not working
Try adding "@" to these parameters :
InitKeyWordChars = A-Za-z_@
KeyWordChars = A-Za-z0-9_@
Otherwise I don't think it can find them to see if they *are* keywords.
InitKeyWordChars = A-Za-z_@
KeyWordChars = A-Za-z0-9_@
Otherwise I don't think it can find them to see if they *are* keywords.
Re: Syntax Highlighting for @@keywords not working
I really wish there was a way to have any word that begins with $ to be highlighted the same color as the $.
With Perl and PHP, only highlighting the $ is fairly annoying.
With Perl and PHP, only highlighting the $ is fairly annoying.
Re: Syntax Highlighting for @@keywords not working
Oh yes.. that would be a most awesome feature for Textpad...