diff options
author | B. Watson <urchlay@slackware.uk> | 2024-07-13 15:31:52 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-07-13 15:31:58 -0400 |
commit | 040863078e5d8c138fd11072ddf3cba061c57dcd (patch) | |
tree | 56432ad0f9db8e61b749baff6dd508046cd7c95b /listbas.1 | |
parent | 97edc9d9d5757888863c56b1fb24ba481d3579ae (diff) | |
download | bw-atari8-tools-040863078e5d8c138fd11072ddf3cba061c57dcd.tar.gz |
listbas: separate highlight colors for DATA items and REM text; highlight quotes around strings and commas between DATA items as operators.
Diffstat (limited to 'listbas.1')
-rw-r--r-- | listbas.1 | 25 |
1 files changed, 15 insertions, 10 deletions
@@ -135,7 +135,8 @@ the \fBSTEP\fP in a \fBFOR\fP command. These are really operators as far as BASIC is concerned, but it makes more sense to colorize them as commands. .TP .B \fBgreen\fP -Operators (except functions and "command operators"). +Operators (except functions and "command operators"), quotes around +strings, and commas between \fBDATA\fP elements. .TP .B \fBpurple\fP Functions. @@ -145,7 +146,10 @@ Numbers (except line numbers at the start of a line) and string constants (but not the quotes around the string). .TP .B \fBcyan\fP -Line numbers at the start of a line, comments (\fBREM\fP text) and \fBDATA\fP items. +Line numbers at the start of a line and \fBDATA\fP items. +.TP +.B \fBblue\fP +Comments (\fBREM\fP text). .TP .B \fBuncolorized\fP Variable names. @@ -156,15 +160,13 @@ never colorized, so they\(aqll appear in the default foreground color (usually white if the terminal has a black background, or black if the background is white). .sp -Note that nothing is blue in the default color scheme. This is because -it\(aqs difficult to read on many terminals. Also, black and white are -not used because presumably, one or the other is the background color -of the terminal. +Black and white are not used by default because presumably, one or the +other is the background color of the terminal. .SS Customization .sp You can customize the colors by using the \fB\-c\fP \fIcolors\fP option, either on the command line, or in the \fBLISTBAS_OPTS\fP environment variable. -\fIcolors\fP is a string of exactly 7 characters, each of which must be the +\fIcolors\fP is a string of exactly 8 characters, each of which must be the digits \fI0\fP through \fI7\fP to specify a color, or the letter \fIn\fP to specify no color. .sp @@ -181,7 +183,7 @@ Red. Green. .TP .B \fI3\fP -Yellow (or brown, on some terminals). +Yellow (or brown/orange, on some terminals). .TP .B \fI4\fP Blue. @@ -219,16 +221,19 @@ Line numbers (at the start of a line only; \fBGOTO\fP and \fBGOSUB\fP line numbe are constants). .TP .B \fB6\fP -\fBDATA\fP items and \fBREM\fP text. +\fBDATA\fP items (but not the commas between them). .TP .B \fB7\fP +\fBREM\fP text. +.TP +.B \fB8\fP Variable names. .UNINDENT .sp So, the default color scheme is equivalent to: .INDENT 0.0 .INDENT 3.5 -\fB\-c\fP \fI325166n\fP +\fB\-c\fP \fI3251646n\fP .UNINDENT .UNINDENT .SH NOTES |