- AuthorPosts
- July 23, 2007 at 7:16 am #4473WyvernoidMember
Emeditor doesn’t highlight numbers, and why not? I think you can add a feature that highlights numbers (which would be useful while programming). It should also come with a short script deciding whether a sequence of characters are numbers, like:
– numbers coming immediately after letters are not considered as numbers (eg. ‘1’ in ‘var1’ is not a number)
– let the user specify special number formats in the Configuration Properties dialog (eg. $xxxx is number in Pascal, &Hxxxx is number in VB)BTW there can also be other thingies, like #xx is a char in Pascal (and such should be highlighted as a string) and comment blocks should have two or more formats (like {…} and (*…*) are both block comment signs in Pascal). ^^ Is that too much? ;P
July 24, 2007 at 10:43 pm #4479VladMemberIt’s easy to add highlighting for numbers and other custom strings. This is defined in Properties -> Highlight (1). Example for numbers:
#Keyword color=1,word=on,rightall=off,case=on,insidetag=off,regexp=on
(?![a-zA-Z_])[0-9]+.*(?![a-zA-Z_])
I don’t think it’s possible to highlight blocks spanning several lines.
- AuthorPosts
- You must be logged in to reply to this topic.