Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - coloring decimal and hexadecimal numbers
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

coloring decimal and hexadecimal numbers

 Post Reply Post Reply
Author
Message
contarra View Drop Down
Newbie
Newbie


Joined: 24 September 2009
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote contarra Quote  Post ReplyReply Direct Link To This Post Topic: coloring decimal and hexadecimal numbers
    Posted: 24 September 2009 at 5:48pm
Hi there, I'm new to Syntax Edit, I looked for documentation and analysed examples without success.
Is there anybody who can tell me how to formalize decimal and hexadecimal numbers in '.schclass' files.
Thanks in advance.
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 25 September 2009 at 4:46pm
E.g. this
 
// @alpha = a-z, A-Z
// @digit = 0-9
// @HexDdigit = 0-9, a-f, A-F
 
lexClass:
 name   = c_VBScriptNumber10
 parent   = c_VBScriptBlock1, c_VBScriptBlock2
 ParseOnScreen = 1
 previous:tag = @specs, ' ', '\t', @EOL 
 start:Tag  = @digit
 end:separators = @digit:not
 txt:colorFG = 0x008284
 DisplayName = 'VB Script Number)'
//:lexClass

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.