18

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.

bignose
  • 30,281
  • 14
  • 77
  • 110
Aethex
  • 1,502
  • 2
  • 16
  • 27

16 Answers16

11

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.

Brian Rasmussen
  • 114,645
  • 34
  • 221
  • 317
6

Ultraedit. Very Good! http://www.ultraedit.com/products/ultraedit/ultraedit_tour.html

backslash17
  • 5,300
  • 4
  • 31
  • 46
  • 1
    I'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
4

The Zeus editor syntax highlighter is highly configurable.

jussij
  • 10,370
  • 1
  • 33
  • 49
4

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.

KeyserSoze
  • 2,501
  • 1
  • 16
  • 17
3

Sublime Text

  • 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...
Jose Faeti
  • 12,126
  • 5
  • 38
  • 52
  • 1
    Great 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
3

You might want to give PSPad a try. Free and feature-rich. Does not even need to be installed, which is a plus if you live in a restricted environment (i.e. no local admin rights).

mats
  • 1,818
  • 3
  • 18
  • 26
2

See info on: http://www.textpad.com

Somnath Muluk
  • 55,015
  • 38
  • 216
  • 226
Joshua Belden
  • 10,273
  • 8
  • 40
  • 56
2

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.

millimoose
  • 39,073
  • 9
  • 82
  • 134
2

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.

Adrien
  • 3,130
  • 22
  • 17
2

notepad2 is really simple and easy to use tool.

Srikar Doddi
  • 15,499
  • 15
  • 65
  • 106
2

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

Ofek Shilon
  • 14,734
  • 5
  • 67
  • 101
1

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

1

Try HippoEDIT. It's my editor of choice after I dumped Notepad++.

rein
  • 32,967
  • 23
  • 82
  • 106
0

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.

Karthik Sagar
  • 424
  • 4
  • 7
0

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.

pts
  • 80,836
  • 20
  • 110
  • 183
0

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.

Julian Melville
  • 185
  • 2
  • 9