From 145967ce8ff9912c09ff105551a4230f90f9d9aa Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 30 Dec 2013 23:12:26 +0400 Subject: [PATCH] added comment highlighting... Signed-off-by: Alex A. Naanou --- Slang/slang.html | 45 +++++++++++++++++++++++++++++++++++++++++---- Slang/slang.js | 18 +++++++++--------- 2 files changed, 50 insertions(+), 13 deletions(-) diff --git a/Slang/slang.html b/Slang/slang.html index be434f9..d4bc5de 100755 --- a/Slang/slang.html +++ b/Slang/slang.html @@ -72,6 +72,25 @@ opacity: 0.8; } + +/* syntax... */ + +pre .comment { + font-style: italic; + color: gray; +} +pre :not(.comment) { + font-weight: bold; +} +pre :not(.comment) .string { + font-style: italic; + color: blue; +} +pre :not(.comment) .word { + font-weight: bold; + color: blue; +} + @@ -210,10 +229,28 @@ function showAvailableWords(){