diff --git a/Slang/slang.html b/Slang/slang.html index 91b8252..be434f9 100755 --- a/Slang/slang.html +++ b/Slang/slang.html @@ -59,7 +59,11 @@ font-family: monospace; } -.word[builtin=yes] { +.word[word-type=constant] { + font-weight: bold; + color: red; +} +.word[word-type=builtin] { font-style: italic; color: blue; } @@ -171,13 +175,16 @@ function showAvailableWords(){ }) .map(function(e){ var code = NAMESPACE[e] - var builtin = 'no' + var type if(code.constructor.name == 'Array'){ + type = 'word' code = stringifySlangCode(code) } else if(typeof(code) == typeof(function(){})){ - builtin = 'yes' + type = 'builtin' + } else { + type = 'constant' } - return ''+e+'' + return ''+e+'' }) .join(' ') } @@ -190,6 +197,11 @@ function showAvailableWords(){ Toggle bootstrap code view...
+ This section includes constants (red) ond constant-like + words (words that allways yield the same value), + built-in words (blue), and 2'nd gen words (black): +