2012-11-17 20:10 UTC+0100 Viktor Szakats (harbour syenar.net)

* website/js/shBrushHarbour.js
    + added preprocessor rule from C/C++ script

  * website/css/shThemeDefault.css
    * swapped colors of comments and PP
This commit is contained in:
Viktor Szakats
2012-11-17 19:11:21 +00:00
parent e9ca3f1b80
commit 9bafad9398
3 changed files with 10 additions and 2 deletions

View File

@@ -16,6 +16,13 @@
The license applies to all entries newer than 2009-04-28.
*/
2012-11-17 20:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* website/js/shBrushHarbour.js
+ added preprocessor rule from C/C++ script
* website/css/shThemeDefault.css
* swapped colors of comments and PP
2012-11-17 19:55 UTC+0100 Viktor Szakats (harbour syenar.net)
* src/rtl/hbjson.c
! applied patch supplied by Oscar Hernandez Suarez

View File

@@ -58,7 +58,7 @@
color: black !important;
}
.syntaxhighlighter .comments, .syntaxhighlighter .comments a {
color: #008200 !important;
color: gray !important;
}
.syntaxhighlighter .string, .syntaxhighlighter .string a {
color: blue !important;
@@ -67,7 +67,7 @@
color: #006699 !important;
}
.syntaxhighlighter .preprocessor {
color: gray !important;
color: #008200 !important;
}
.syntaxhighlighter .variable {
color: #aa7700 !important;

View File

@@ -22,6 +22,7 @@
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
{ regex: /\$\w+/g, css: 'variable' }, // variables
{ regex: /^ *#.*/gm, css: 'preprocessor' },
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions
{ regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword