Print Page | Close Window

coloring decimal and hexadecimal numbers

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=15240
Printed Date: 19 May 2024 at 9:51pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: coloring decimal and hexadecimal numbers
Posted By: contarra
Subject: coloring decimal and hexadecimal numbers
Date 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.



Replies:
Posted By: mdoubson
Date 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



-------------
Mark Doubson, Ph.D.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net