3 ms·
> what advantages do you feel this offers over an Emacs which just highlights the symbol of interest or region between the matched parens for a particular code
by tincholio 15y ago
> what advantages do you feel this offers over an Emacs which just highlights the symbol of interest or region between the matched parens for a particular code block?
This already exists: http://www.foldr.org/~michaelw/emacs/mwe-color-box.el http://www.foldr.org/~michaelw/emacs/mwe-color-box.el
(you can see a screenie in http://www.foldr.org/~michaelw/emacs/color-box.png http://www.foldr.org/~michaelw/emacs/color-box.png)
- jamesgeck0 15y agoThat is extremely shiny. Can I get that in Vim?
- gnosis 15y agoWell, this is not quite the same, but you can get indent-level highlighting in vim via these sorts of plugins: http://www.vim.org/scripts/script.php?script_id=3361 http://www.vim.org/scripts/script.php?script_id=3361 http://www.vim.org/scripts/script.php?script_id=1800 http://www.vim.org/scripts/script.php?script_id=1800 Some screenshots: http://nathanaelkane.imgur.com/indent_guides http://nathanaelkane.imgur.com/indent_guides http://viming.blogspot.com/2007/02/indent-level-highlighting.html http://viming.blogspot.com/2007/02/indent-level-highlighting... Of course, you can also get rainbow parenthesis in vim via: :let g:lisp_rainbow = 1 There should also be some way to get background highlights based on sexpr's instead of just indent level, but I haven't personally seen it. Edit: actually, come to think of it, I seem to recall hearing that the slimv[1] plugin can do this. But I haven't really played with it myself. [1] - http://www.vim.org/scripts/script.php?script_id=2531 http://www.vim.org/scripts/script.php?script_id=2531
- gt384u 15y agoThank you. I knew that it was an editor feature I'd seen before for lisp code, but didn't recall the name of any one in particular.
- tincholio 15y agoYou're welcome! I don't know how useful it is in practice. I myself don't mind the parens as long as I can see them match.
- Arelius 15y agoI... love... this... Seriously though, I wish that emacs put effort into a more modern rendering architecture. So that you could implement this sort of visualization in a more flexible way.
- jjwiseman 15y agoAnd here's a small survey of lisp expression highlighting UIs from a few years ago, "Five approaches to s-expression highlighting": http://lemonodor.com/archives/2005/08/five_approaches.html http://lemonodor.com/archives/2005/08/five_approaches.html