Home Download Buy Blog Forum Support

Syntax highlighting for email address

Syntax highlighting for email address

Postby arek1 on Fri Oct 19, 2012 11:15 am


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?

Posts: 29
Joined: Sat May 19, 2012 4:17 pm
Location: Gdynia, PL

Re: Syntax highlighting for email address

Postby gyulus on Wed Oct 24, 2012 1:35 pm

You can find the PersistentRegexHighlight addon here: http://www.sublimetext.com/forum/viewtopic.php?f=2&t=9730
Use something like this in the settings:
Code: Select all
    "regex": [{
        "pattern": "^([\\w-]+(?:\\.[\\w-]+)*)@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([a-z]{2,6}(?:\\.[a-z]{2})?)$",
        "color_scope": "regex.highlight.emailaddress",
        "ignore_case": true
Posts: 5
Joined: Mon Mar 05, 2012 8:30 am

Return to General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 34 guests