Re: [Audacity-nyquist] Nyquist syntax highlighting?
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Sami J. <sam...@gm...> - 2005-12-21 13:59:55
|
> What is syntax highlighting, and what's an example of how I could use it? In short: formatting the text in question so that different syntatic elements are coloured, in bold, in italics, what ever is needed to make the text more readable. It has nothing to do with executing or evaluating the code. Let's take this line of code: (lowpass s 14000) Syntax highlighter could, for example, show the parentheses in black, "lowpass" in bold (identifier), "s" in blue (variable) and "14000" in red (value). Standard functions etc. could be displayed as reserved words, and formatted differently. When programming - even a bit more complex things - syntax highlighting helps very much. When you are used to see your code in colour, that's the way you'll go. When I'm printing functions on paper from my Delphi applications, I just have to use colour printer :) The benefit of A3 size b&w printout really is marginal. > I partially understood, it sounds like I can take for example a single > function defunned in a LISP file and run it to see what the results are, > which I assume means if that function doesn't work yet, it might 'break' > the rest of the code? That goes a bit further and under terms like evaluator, compiler or interpreter. Syntax highligher can be clever, but it usually doesn't do syntax checks - except that the user usually sees from the miscolouring that something is wrong. It may warn about missing parentheses, but that's about as far syntax highlighter goes. -- Sami "Some-E" Jumppanen sam...@gm... http://netti.nic.fi/~some-e/ |