10

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?

7

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

https://github.com/joeferraro/MavensMate

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.

  • 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
3

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!

2

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

2

Aside.io is a cool web based developer that provides syntax highlighting for Apex/Visualforce as well.

0

There is an apex-mode for Emacs at http://github.com/orangatame/apex-mode

0

Visual Studio Code has many plugins. One of which is apex syntax highlighting.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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