views:

179

answers:

6

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.

+1  A: 

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.

dd
+3  A: 

Emacs with rst-mode: http://docutils.sourceforge.net/docs/user/emacs.html

Matti Pastell
A: 

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.

Matt Garrison
A: 

Gedit has a ReST plugin which supports syntax highlighting, keyboard shortcuts ("snippets"), and HTML preview.

flexiondotorg
A: 

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

eolo999