Sublime Forum

Syntax highlighting for email address

#1

Hi,

I need very often to verificate long list of email addresses. Whan I was working on Windows machine I used PsPad text editor. It have very nice feature highlighteing valid email adress.
Now I am using briliant SublimeText2. Can anybody help me to create custom syntax highlight file which will colour valid email adresses?

Cheers
ArekS

0 Likes

#2

You can find the PersistentRegexHighlight addon here: https://forum.sublimetext.com/t/jedit-features-i-miss-in-sublime/7662/1
Use something like this in the settings:

{ "regex": { "pattern": "^(\\w-]+(?:\\.\\w-]+)*)@((?:\\w-]+\\.)*\\w\\w-]{0,66})\\.([a-z]{2,6}(?:\\.[a-z]{2})?)$", "color_scope": "regex.highlight.emailaddress", "ignore_case": true }] }

0 Likes