Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Apart from's internal editor and IDE / Eclipse, which applications support syntax highlighting for Apex and Visualforce.

I just found a definition file for Vim, but could not find any for other popular editors and writing systems, i.e. Gedit and SublimeText for editing, and Sphinx/Pygments for documenting.

What other syntax highlighting resources do you know? How would I write my own definition? Is there a reference on

share|improve this question

On the Mac, checkout MavensMate for Sublime and TextMate:

As Mark notes, anything that has a plugin structure and an existing plugin for Java/HTML or Java/JSP will translate almost 1:1 to Apex/Visualforce - with the exception of filename detection and some of the custom annotations/DML/SOQL stuff.

share|improve this answer
Would it be possible to get one of those plugins working in Netbeans? – Joshua Dance Jun 3 '14 at 21:52
Just a note- this is also available on windows and linux. – battery.cord Nov 5 '14 at 14:10

Checkout BrainEngine windows only for desktop version, but they have a cloud version based on Silverlight?

Pretty cool! Still in beta, but the video on the site demos it's code-hinting which looks solid once they get the kinks worked out!

share|improve this answer

You could use Notepad++ and create a User Defined Language file for Apex (maybe based off of the Java language file) and also one for VisualForce (maybe the HTML language file with the addition of the VF tags).

Alternatively you can use Notepad++ with the Java and HTML languages selected when viewing Apex and VisualForce content respectively. It wouldn't be perfect but it would be better than raw text.

If you do create language files for Notepad++, consider publishing them for the world to use too!

Creating a User Defined Language File

SourceForge Notepad++ User Defined Languages list

share|improve this answer is a cool web based developer that provides syntax highlighting for Apex/Visualforce as well.

share|improve this answer

There is an apex-mode for Emacs at

share|improve this answer
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – Chris Duncombe Sep 16 '14 at 13:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.