What is the best text editor with the ability to create custom syntax? I used notepad++, but the custom syntax was a bit limited and the plugins (namely textFX) had a few bugs to satisfy me. I heard about Vim and Emacs (which one is better?), but I want a FAST editor with many features.
-
4"I heard about Vim and Emacs (which one is better?)", you really don't want to open that can of worms. – The Pixel Developer Apr 30 '09 at 22:27
-
1http://www.jedit.org is good. I don't know about speed it is enough for me. – THEn Apr 30 '09 at 22:30
-
Neither vi nor emacs is better than the other, and it's pointless to ask. They are both equally good in different ways. – Bryan Oakley Jun 23 '09 at 13:54
16 Answers
Vim and Emacs are fast and have lots of features, including syntax highlighting.
Personally I use Vim, but both of them are powerful editors. If you use Visual Studio the ViEmu plug-in is a very nice option as it allows almost complete Vim editing within Visual Studio.

- 114,645
- 34
- 221
- 317
-
1And both of them have massive collections of syntax-highlighting already. – bignose May 01 '09 at 04:08
Ultraedit. Very Good! http://www.ultraedit.com/products/ultraedit/ultraedit_tour.html

- 5,300
- 4
- 31
- 46
-
1I've used it since version 5 or 6, finally broke down and bought a perpetual license. It's on version 15 now. – Mark Allen Apr 30 '09 at 23:18
I like SciTE. It's very customizable (with lua), and works great on windows and linux. It's easy to modify existing language rules, or add new languages. Generally I only do syntax-highlighting and tab behavior, but the sky's the limit if you use lua.

- 2,501
- 1
- 16
- 17
- Fast
- Lightweight
- Syntax highlight, Code completion, Code folding
- Completely customizable
- Custom syntax
- Code snippets
- Plugins
- Supports many languages already
- Minimap navigation
- Keys remapping
- Macros
- Regex
- Projects handling
- Builds and executes scripts/exes
- Full screen, multi-monitor, up to 4 columns (files) at a time
- Really fast growing, etc...

- 12,126
- 5
- 38
- 52
-
1Great choice - I highly recommend it: very fast, highly customizable and very elegant features/interface. It is easily the benchmark editor I compare all editors against – Bendy Jan 03 '17 at 18:39
See info on: http://www.textpad.com

- 55,015
- 38
- 216
- 226

- 10,273
- 8
- 40
- 56
-
This was the best editor in 2004. Sadly, it's basically abandoned. – Álvaro González Jul 24 '11 at 18:32
On Windows, the E Text Editor supports TextMate bundles, which seem to be fairly easy to create given how many there are and how powerful they tend to be. (Basically, TM bundles can do the heavy lifting in any language you please.)
However, it's paid software, and uses Cygwin underneath, which makes it a bit laggy and flaky when executing the bundle commands.

- 39,073
- 9
- 82
- 134
For Windows, I've been very happy with Programmer's Notepad for a while. It's stable, it's customizable, it's light enough, and it's open-source.

- 3,130
- 22
- 17
I'm very happy with Visual Studio - both native editing abilities, easy extension model and customizable syntax.

- 14,734
- 5
- 67
- 101
If you're on a Mac, Smultron offers dead-simple custom syntax highlighting. It's pretty much point and click. You're limited to about 7 or 8 different tag/keyword combinations, but it took me about 5 minutes to put together a custom highlighting scheme once I knew where to look.
I'd also second what other people said about existing syntax files for vim. There are pretty good odds that someone has created a syntax file (or something close to it) for what you're doing. My advice: Try to find a similar syntax file, then hack it up and put it in your ~/.vim/syntax directory. Before you go to the trouble, though, go through the vim tutorial (you should be able to just type "vimtutor" at your command prompt) and see if the quirky keyboard commands would work for you.
As for Jens Alfke's comments about vi, I use vim ("VI-iMproved") on a regular basis and find that the moving around without the arrow keys or mouse is dramatically faster when working with multiple large text files. I felt the same way as Jens about the cryptic letter commands until I ran through vimtutor - since then, vim has been my favorite editor. The only side effect is that I'll end up with odd characters in non-vim text fields sometimes. :wq
This is for windows OS
Atom is a cool text editor https://atom.io/
supports smart autocompletion, lot of plugins are available. It helped me to make a json document pretty with simple plugin pretty-json. Large size around 100mb.
But Feel of the editor is really awesome.

- 424
- 4
- 7
For simple syntax highlighting for C-like languages, try Textpad. You can define the operators, braces, comment delimiters and keywords for your languages in a few minutes.
The editors Komodo Edit, Emacs, VIM and Epsilon give you the power to define almost any kind of syntax highlighting. If you know the syntax highlighting model of these editors very well (takes hours or more to learn), usually you have to spend at least an hour, but usually a day to create your custom syntax highlighting, VIM being the easiest to program the syntax highlighting.
I use the editor Joe on Linux, which also lets the user define custom syntax highlighting, but its state machine-based model is not so powerful as the editors mentioned in the previous paragraph.

- 80,836
- 20
- 110
- 183
A few years ago I would have answered Textpad as well, but development seems to have slowed since then and features such as auto-highlighting bracket completion, pretty much standard these days, are still missing (see the Textpad forums for discussion). The syntax highlighting options are user-contributed but there's been no gardening done on the Textpad website for years, so it'll be up to you to find, for example, which of the 11 PHP highlighters works the best.
A recent find for me is Editra, a Scintilla-based app that is fast, multi-platform and customizable. It's still in early versions but has given me no troubles so far on Windows. For syntax customizations look in the syntax folder inside the library.zip file once it's installed.
Komodo is powerful but I've found it to be slower than slow, particularly when launching. It also left "Edit with Komodo" entries scattered all through my registry after being uninstalled, so it won't be invited back.

- 185
- 2
- 9