Repository navigation
Highlighting spaces and tabs #5519
|
I'd like to add Linguist support for the Whitespace programming language. It should meet the 200-repo requirement and there is precedent for including other esolangs in Linguist (e.g. Brainfuck, Befunge, LOLCODE). The only characters in Whitespace are space, tab, and line feed, but since they are non-printable, there is no text to highlight. There are two existing TextMate grammars for Whitespace: veniversum/language-whitespace and bvisness/whitespace. @veniversum appears to solve this by replacing space, tab, and line feed with |
Replies: 3 comments 12 replies
|
It's one thing to support syntax highlighting for esolangs, but another thing to build new features specifically for esolangs. That seems like a clear waste of time. Besides, the only reason I did anything with Whitespace was because I was in college, it was on the Wikipedia page for esolangs, and it sounded funny. I never even got it running. Nothing I have done is a worthwhile precedent for serious work. And besides, isn't whitespace funnier when you can't see the contents of the file? 😛 |
|
Here's the CSS classes that have a background color on GitHub:
So you (or I) could create a grammar that uses |
Keep in mind that we now have minimum usage requirements which may not have been in place when other esolangs were added. Given Whitespace has nothing to differentiate it content-wise you're only going to be able to rely on the extension or specific filename to prove usage. |

Here's the CSS classes that have a background color on GitHub:
.pl-ii {color:#fafbfc;background-color:#b31d28}-#b31d28.pl-c2 {color:#fafbfc;background-color:#d73a49}-#d73a49.pl-md {color:#b31d28;background-color:#ffeef0}-#ffeef0.pl-mi1{color:#22863a;background-color:#f0fff4}-#f0fff4.pl-mc {color:#e36209;background-color:#ffebda}-#ffebda.pl-mi2{color:#f6f8fa;background-color:#005cc5}-#005cc5So you (or I) could create a grammar that uses
.pl-ii(tokeninvalid.illegal) and.pl-mi2(not sure what token) and display well on GitHub.