Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Apart from Force.com's internal editor and Force.com 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 Force.com?

share|improve this question

5 Answers 5

On the Mac, checkout MavensMate for Sublime and TextMate: https://github.com/joeferraro/MavensMate-SublimeText


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. –  DashboardReport 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

Aside.io 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 http://github.com/orangatame/apex-mode

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. –  sfdc_ninja 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.