Syntax: Include underscores in numbers

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
jeffrey_glenn
Posts: 1
Joined: Mon Jun 12, 2006 4:41 pm

Syntax: Include underscores in numbers

Post by jeffrey_glenn »

I use TextPad for various languages, with syntax, including several I created myself for my work. Any way, I use it often with Ada 95 which allows underscores to be included in numeric literals, e.g. 10_000_000, like where one would put commas to separate groups of digits.

For syntax coloring, TextPad recognizes only up to the first underscore, so that in my example above, the "10" would be in color, but the "_000_000" is in black.

Does anyone know how to specify in either my syntax file or in TextPad's preferences how to include those underscores in my numbers?

Thanks!
Jeff Glenn
User avatar
Tomas Eklund
Posts: 40
Joined: Tue Mar 16, 2004 1:15 am
Location: Sweden

Post by Tomas Eklund »

Don't think that is possible with TextPad 4. I guess you need to look for a text editor which uses regular expressions for defining syntax coloring schemes. Personally, I only know of one editor that does, and it's created by JGSoft. But of course, there may be others as well.
Post Reply