Page 1 of 1

Syntax highlighting for email addresses

Posted: Wed Mar 10, 2004 6:33 pm
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

Posted: Wed Mar 10, 2004 7:05 pm
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.