I'm just learning Sphinx, and I need to edit ReST files. Is there an intelligent editor for it? Like, an editor that gives me code coloration, easy indentation, code completion (hopefully), etc.
Leo does some of this: http://en.wikipedia.org/wiki/Leo_%28text_editor%
More info: http://webpages.charter.net/edreamleo/rstplugin3.html
vi
is very good at this. I was just editing some .rst
files right now and it colors the headings, monospaced text, etc. The macros let you very quickly turn text into headings and whatnot.
Emacs with rst-mode: http://docutils.sourceforge.net/docs/user/emacs.html
jEdit also has ReST highlighting, but no ReST specific auto-completion features (it does support macros though).
I would opt for vim or Cream, personally.
Gedit has a ReST plugin which supports syntax highlighting, keyboard shortcuts ("snippets"), and HTML preview.
I use vim and have some useful mappings in my .vimrc:
nnoremap <leader>1 yypVr=
nnoremap <leader>2 yypVr-
nnoremap <leader>3 yypVr'
nnoremap <leader>4 yypVr`
vmap <silent> <leader>b :call BulletList()<cr>
" Bullet List
function! BulletList()
let lineno = line(".")
call setline(lineno, "* " . getline(lineno))
endfunction
And often create vim macros on th fly depending on the file I have to restructure