4 ms·
Set the highlight color of your () to white. Solved.
by JulianMorrison 17y ago
Set the highlight color of your () to white. Solved.
- olliesaunders 17y agoWhy are people up-voting this? This is a recipe for bugs.
- DrJokepu 17y agoI think (hope) that it was meant to be funny as opposed to being a serious advice.
- olliesaunders 17y agoOh right. I get it now :-)
- jamesbritt 17y agoI've done this with Ruby and set the color to light gray. My co-workers wanted to have C/Java-style parens around damn near everything (except when they didn't; the reasoning to omit them was something along the lines of, "But, see, here it's a DSL." ) They strike me as line noise and make it harder to read many things, so I lightened up the color in my vim syntax files to give the appearance of more white space. I had mixed results. Yes, it was far more readable to me, but there were times when a paren was missing or mistakenly added, or the spacing was off (another coding standard violation), and so on. Now that I code on my own, the new coding standards say no parens unless required by the language. I also changed my syntax coloring back to more clearly show parens.
- DrJokepu 17y agoHeated debates amongst programmers (coworkers) about marginally important questions such as indenting styles, parenthesis usage, naming conventions, source code directory structure, etc. are always very amusing to observe. I usually sit back and just watch the show.
- jamesbritt 17y ago"I usually sit back and just watch the show." Were that always an option. :)
- JulianMorrison 17y agoLight gray, then ;-P Srsly, looking past the brackets is the least problem in reading lisp. The harder part is dealing with the lack of syntax, so you have to remember place structures instead of picking up hints from the punctuation. And in that regard, Pythonic indenting makes it harder.
- eru 17y agoPerhaps we should go the Haskell route instead of the Python one?
- coliveira 17y agoSome IDEs (Alegro CL, cusp eclipse) display the arguments for all known forms and functions.
- mahmud 17y agos/some/all/g Nearly every Lisp development environment does that. SLIME, the poster child of excess does this as well. I don't think I matched parenthesis, indented or looked up a documentation since 2005.
- JulianMorrison 17y agoDoesn't help you if what you are trying to do is read code, rather than write it.
- sandGorgon 17y agois there a way to interchange ( to [ ? I have RSI. P.S. Not keyboard mapping please.
- stefano 17y agoDrScheme (PLT scheme's IDE) automatically translates [ and ] to ( and ) where appropriate. It's very handy.
- geocar 17y ago(defun square-bracket-reader (stream char) (declare (ignore char)) (read-delimited-list #\] stream t)) (defun use-square-bracket-readtable () (set-macro-character #\[ #'square-bracket-reader) (set-macro-character #\] (get-macro-character #\) nil)))
- sandGorgon 17y agothanks!
- astine 17y agoI set my editor to highlight my parens not de-emphasize so I can get a better picture of the structure of my code at a glance.