Syntax highlighting for email addresses

General questions about using TextPad

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

Post Reply
bjack985
Posts: 3
Joined: Wed Mar 10, 2004 5:09 pm

Syntax highlighting for email addresses

Post by bjack985 »

I'm interested in using the syntax highlighting to color email addresses in text files. The html.syn file doesn't seem to have any effect when I use that file for an email header i've got in a text document. It only marks "<" and ">" characters. I can use the regexp \<[a-zA-Z\._]+@+[a-zA-Z0-9\.-]* to find email addresses using the search feature, but I'm not sure how to incorporate it into a syntax file.
Any help would be appreciated.

Thanks,
Brian
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Using RegEx's in syntax definition files, see http://textpad.com/forum/viewtopic.php?t=3846
Lot's of ideas there and on related topics such as dynamic keywords, feel free to vote!
Highlighting email addresses with the current - 472 - version stumps me, the url highlighting
seems to be embedded/hidden in the text class and from looking at the html syntax
definition file it looks like it's inheriting that property from the text class, ie. hidden there too.
Then I open up and see
the person fumbling here is me
a different way to be
Post Reply