Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #4473


    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



    It’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

    I don’t think it’s possible to highlight blocks spanning several lines.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.