highlight_js-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +19 -0
- data/AUTHORS.en.txt +46 -0
- data/AUTHORS.ru.txt +46 -0
- data/Gemfile +4 -0
- data/LICENSE +24 -0
- data/README.md +34 -0
- data/Rakefile +2 -0
- data/classref.txt +437 -0
- data/highlight_js-rails.gemspec +19 -0
- data/lib/highlight_js/rails/engine.rb +6 -0
- data/lib/highlight_js/version.rb +5 -0
- data/lib/highlight_js-rails.rb +2 -0
- data/vendor/assets/images/highlight_js/brown_papersq.png +0 -0
- data/vendor/assets/images/highlight_js/school_book.png +0 -0
- data/vendor/assets/javascripts/highlight_js/highlight.js +630 -0
- data/vendor/assets/javascripts/highlight_js/languages/1c.js +68 -0
- data/vendor/assets/javascripts/highlight_js/languages/apache.js +432 -0
- data/vendor/assets/javascripts/highlight_js/languages/avrasm.js +75 -0
- data/vendor/assets/javascripts/highlight_js/languages/axapta.js +43 -0
- data/vendor/assets/javascripts/highlight_js/languages/bash.js +56 -0
- data/vendor/assets/javascripts/highlight_js/languages/cmake.js +24 -0
- data/vendor/assets/javascripts/highlight_js/languages/cpp.js +62 -0
- data/vendor/assets/javascripts/highlight_js/languages/cs.js +41 -0
- data/vendor/assets/javascripts/highlight_js/languages/css.js +101 -0
- data/vendor/assets/javascripts/highlight_js/languages/delphi.js +70 -0
- data/vendor/assets/javascripts/highlight_js/languages/diff.js +64 -0
- data/vendor/assets/javascripts/highlight_js/languages/django.js +72 -0
- data/vendor/assets/javascripts/highlight_js/languages/dos.js +29 -0
- data/vendor/assets/javascripts/highlight_js/languages/erlang-repl.js +81 -0
- data/vendor/assets/javascripts/highlight_js/languages/erlang.js +201 -0
- data/vendor/assets/javascripts/highlight_js/languages/go.js +58 -0
- data/vendor/assets/javascripts/highlight_js/languages/haskell.js +77 -0
- data/vendor/assets/javascripts/highlight_js/languages/ini.js +32 -0
- data/vendor/assets/javascripts/highlight_js/languages/java.js +45 -0
- data/vendor/assets/javascripts/highlight_js/languages/javascript.js +53 -0
- data/vendor/assets/javascripts/highlight_js/languages/lisp.js +87 -0
- data/vendor/assets/javascripts/highlight_js/languages/lua.js +75 -0
- data/vendor/assets/javascripts/highlight_js/languages/mel.js +40 -0
- data/vendor/assets/javascripts/highlight_js/languages/nginx.js +224 -0
- data/vendor/assets/javascripts/highlight_js/languages/objectivec.js +94 -0
- data/vendor/assets/javascripts/highlight_js/languages/parser3.js +52 -0
- data/vendor/assets/javascripts/highlight_js/languages/perl.js +143 -0
- data/vendor/assets/javascripts/highlight_js/languages/php.js +55 -0
- data/vendor/assets/javascripts/highlight_js/languages/profile.js +49 -0
- data/vendor/assets/javascripts/highlight_js/languages/python.js +71 -0
- data/vendor/assets/javascripts/highlight_js/languages/renderman.js +230 -0
- data/vendor/assets/javascripts/highlight_js/languages/ruby.js +203 -0
- data/vendor/assets/javascripts/highlight_js/languages/scala.js +60 -0
- data/vendor/assets/javascripts/highlight_js/languages/smalltalk.js +55 -0
- data/vendor/assets/javascripts/highlight_js/languages/sql.js +90 -0
- data/vendor/assets/javascripts/highlight_js/languages/tex.js +62 -0
- data/vendor/assets/javascripts/highlight_js/languages/vala.js +75 -0
- data/vendor/assets/javascripts/highlight_js/languages/vbscript.js +30 -0
- data/vendor/assets/javascripts/highlight_js/languages/vhdl.js +30 -0
- data/vendor/assets/javascripts/highlight_js/languages/xml.js +103 -0
- data/vendor/assets/stylesheets/highlight_js/arta.css +151 -0
- data/vendor/assets/stylesheets/highlight_js/ascetic.css +45 -0
- data/vendor/assets/stylesheets/highlight_js/brown_paper.css.erb +105 -0
- data/vendor/assets/stylesheets/highlight_js/dark.css +103 -0
- data/vendor/assets/stylesheets/highlight_js/default.css +121 -0
- data/vendor/assets/stylesheets/highlight_js/far.css +118 -0
- data/vendor/assets/stylesheets/highlight_js/github.css +129 -0
- data/vendor/assets/stylesheets/highlight_js/idea.css +118 -0
- data/vendor/assets/stylesheets/highlight_js/ir_black.css +103 -0
- data/vendor/assets/stylesheets/highlight_js/magula.css +118 -0
- data/vendor/assets/stylesheets/highlight_js/school_book.css.erb +111 -0
- data/vendor/assets/stylesheets/highlight_js/solarized_dark.css +96 -0
- data/vendor/assets/stylesheets/highlight_js/solarized_light.css +96 -0
- data/vendor/assets/stylesheets/highlight_js/sunburst.css +147 -0
- data/vendor/assets/stylesheets/highlight_js/vs.css +84 -0
- data/vendor/assets/stylesheets/highlight_js/zenburn.css +115 -0
- metadata +129 -0
@@ -0,0 +1,55 @@
|
|
1
|
+
/*
|
2
|
+
Language: Smalltalk
|
3
|
+
Author: Vladimir Gubarkov <xonixx@gmail.com>
|
4
|
+
*/
|
5
|
+
|
6
|
+
hljs.LANGUAGES.smalltalk = function() {
|
7
|
+
var VAR_IDENT_RE = '[a-z][a-zA-Z0-9_]*';
|
8
|
+
var CHAR = {
|
9
|
+
className: 'char',
|
10
|
+
begin: '\\$.{1}'
|
11
|
+
};
|
12
|
+
var SYMBOL = {
|
13
|
+
className: 'symbol',
|
14
|
+
begin: '#' + hljs.UNDERSCORE_IDENT_RE
|
15
|
+
};
|
16
|
+
return {
|
17
|
+
defaultMode: {
|
18
|
+
keywords: {'self': 1, 'super': 1, 'nil': 1, 'true': 1, 'false': 1, 'thisContext': 1}, // only 6
|
19
|
+
contains: [
|
20
|
+
{
|
21
|
+
className: 'comment',
|
22
|
+
begin: '"', end: '"',
|
23
|
+
relevance: 0
|
24
|
+
},
|
25
|
+
hljs.APOS_STRING_MODE,
|
26
|
+
{
|
27
|
+
className: 'class',
|
28
|
+
begin: '\\b[A-Z][A-Za-z0-9_]*',
|
29
|
+
relevance: 0
|
30
|
+
},
|
31
|
+
{
|
32
|
+
className: 'method',
|
33
|
+
begin: VAR_IDENT_RE + ':'
|
34
|
+
},
|
35
|
+
hljs.C_NUMBER_MODE,
|
36
|
+
SYMBOL,
|
37
|
+
CHAR,
|
38
|
+
{
|
39
|
+
className: 'localvars',
|
40
|
+
begin: '\\|\\s*((' + VAR_IDENT_RE + ')\\s*)+\\|'
|
41
|
+
},
|
42
|
+
{
|
43
|
+
className: 'array',
|
44
|
+
begin: '\\#\\(', end: '\\)',
|
45
|
+
contains: [
|
46
|
+
hljs.APOS_STRING_MODE,
|
47
|
+
CHAR,
|
48
|
+
hljs.C_NUMBER_MODE,
|
49
|
+
SYMBOL
|
50
|
+
]
|
51
|
+
}
|
52
|
+
]
|
53
|
+
}
|
54
|
+
};
|
55
|
+
}();
|
@@ -0,0 +1,90 @@
|
|
1
|
+
/*
|
2
|
+
Language: SQL
|
3
|
+
*/
|
4
|
+
|
5
|
+
hljs.LANGUAGES.sql = {
|
6
|
+
case_insensitive: true,
|
7
|
+
defaultMode: {
|
8
|
+
illegal: '[^\\s]',
|
9
|
+
contains: [
|
10
|
+
{
|
11
|
+
className: 'operator',
|
12
|
+
begin: '(begin|start|commit|rollback|savepoint|lock|alter|create|drop|rename|call|delete|do|handler|insert|load|replace|select|truncate|update|set|show|pragma)\\b', end: ';|$',
|
13
|
+
keywords: {
|
14
|
+
'keyword': {
|
15
|
+
'all': 1, 'partial': 1, 'global': 1, 'month': 1,
|
16
|
+
'current_timestamp': 1, 'using': 1, 'go': 1, 'revoke': 1,
|
17
|
+
'smallint': 1, 'indicator': 1, 'end-exec': 1, 'disconnect': 1,
|
18
|
+
'zone': 1, 'with': 1, 'character': 1, 'assertion': 1, 'to': 1,
|
19
|
+
'add': 1, 'current_user': 1, 'usage': 1, 'input': 1, 'local': 1,
|
20
|
+
'alter': 1, 'match': 1, 'collate': 1, 'real': 1, 'then': 1,
|
21
|
+
'rollback': 1, 'get': 1, 'read': 1, 'timestamp': 1,
|
22
|
+
'session_user': 1, 'not': 1, 'integer': 1, 'bit': 1, 'unique': 1,
|
23
|
+
'day': 1, 'minute': 1, 'desc': 1, 'insert': 1, 'execute': 1,
|
24
|
+
'like': 1, 'ilike': 2, 'level': 1, 'decimal': 1, 'drop': 1,
|
25
|
+
'continue': 1, 'isolation': 1, 'found': 1, 'where': 1,
|
26
|
+
'constraints': 1, 'domain': 1, 'right': 1, 'national': 1, 'some': 1,
|
27
|
+
'module': 1, 'transaction': 1, 'relative': 1, 'second': 1,
|
28
|
+
'connect': 1, 'escape': 1, 'close': 1, 'system_user': 1, 'for': 1,
|
29
|
+
'deferred': 1, 'section': 1, 'cast': 1, 'current': 1, 'sqlstate': 1,
|
30
|
+
'allocate': 1, 'intersect': 1, 'deallocate': 1, 'numeric': 1,
|
31
|
+
'public': 1, 'preserve': 1, 'full': 1, 'goto': 1, 'initially': 1,
|
32
|
+
'asc': 1, 'no': 1, 'key': 1, 'output': 1, 'collation': 1, 'group': 1,
|
33
|
+
'by': 1, 'union': 1, 'session': 1, 'both': 1, 'last': 1,
|
34
|
+
'language': 1, 'constraint': 1, 'column': 1, 'of': 1, 'space': 1,
|
35
|
+
'foreign': 1, 'deferrable': 1, 'prior': 1, 'connection': 1,
|
36
|
+
'unknown': 1, 'action': 1, 'commit': 1, 'view': 1, 'or': 1,
|
37
|
+
'first': 1, 'into': 1, 'float': 1, 'year': 1, 'primary': 1,
|
38
|
+
'cascaded': 1, 'except': 1, 'restrict': 1, 'set': 1, 'references': 1,
|
39
|
+
'names': 1, 'table': 1, 'outer': 1, 'open': 1, 'select': 1,
|
40
|
+
'size': 1, 'are': 1, 'rows': 1, 'from': 1, 'prepare': 1,
|
41
|
+
'distinct': 1, 'leading': 1, 'create': 1, 'only': 1, 'next': 1,
|
42
|
+
'inner': 1, 'authorization': 1, 'schema': 1, 'corresponding': 1,
|
43
|
+
'option': 1, 'declare': 1, 'precision': 1, 'immediate': 1, 'else': 1,
|
44
|
+
'timezone_minute': 1, 'external': 1, 'varying': 1, 'translation': 1,
|
45
|
+
'true': 1, 'case': 1, 'exception': 1, 'join': 1, 'hour': 1,
|
46
|
+
'default': 1, 'double': 1, 'scroll': 1, 'value': 1, 'cursor': 1,
|
47
|
+
'descriptor': 1, 'values': 1, 'dec': 1, 'fetch': 1, 'procedure': 1,
|
48
|
+
'delete': 1, 'and': 1, 'false': 1, 'int': 1, 'is': 1, 'describe': 1,
|
49
|
+
'char': 1, 'as': 1, 'at': 1, 'in': 1, 'varchar': 1, 'null': 1,
|
50
|
+
'trailing': 1, 'any': 1, 'absolute': 1, 'current_time': 1, 'end': 1,
|
51
|
+
'grant': 1, 'privileges': 1, 'when': 1, 'cross': 1, 'check': 1,
|
52
|
+
'write': 1, 'current_date': 1, 'pad': 1, 'begin': 1, 'temporary': 1,
|
53
|
+
'exec': 1, 'time': 1, 'update': 1, 'catalog': 1, 'user': 1, 'sql': 1,
|
54
|
+
'date': 1, 'on': 1, 'identity': 1, 'timezone_hour': 1, 'natural': 1,
|
55
|
+
'whenever': 1, 'interval': 1, 'work': 1, 'order': 1, 'cascade': 1,
|
56
|
+
'diagnostics': 1, 'nchar': 1, 'having': 1, 'left': 1, 'call': 1,
|
57
|
+
'do': 1, 'handler': 1, 'load': 1, 'replace': 1, 'truncate': 1,
|
58
|
+
'start': 1, 'lock': 1, 'show': 1, 'pragma': 1},
|
59
|
+
'aggregate': {'count': 1, 'sum': 1, 'min': 1, 'max': 1, 'avg': 1}
|
60
|
+
},
|
61
|
+
contains: [
|
62
|
+
{
|
63
|
+
className: 'string',
|
64
|
+
begin: '\'', end: '\'',
|
65
|
+
contains: [hljs.BACKSLASH_ESCAPE, {begin: '\'\''}],
|
66
|
+
relevance: 0
|
67
|
+
},
|
68
|
+
{
|
69
|
+
className: 'string',
|
70
|
+
begin: '"', end: '"',
|
71
|
+
contains: [hljs.BACKSLASH_ESCAPE, {begin: '""'}],
|
72
|
+
relevance: 0
|
73
|
+
},
|
74
|
+
{
|
75
|
+
className: 'string',
|
76
|
+
begin: '`', end: '`',
|
77
|
+
contains: [hljs.BACKSLASH_ESCAPE]
|
78
|
+
},
|
79
|
+
hljs.C_NUMBER_MODE,
|
80
|
+
{begin: '\\n'}
|
81
|
+
]
|
82
|
+
},
|
83
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
84
|
+
{
|
85
|
+
className: 'comment',
|
86
|
+
begin: '--', end: '$'
|
87
|
+
}
|
88
|
+
]
|
89
|
+
}
|
90
|
+
};
|
@@ -0,0 +1,62 @@
|
|
1
|
+
/*
|
2
|
+
Language: TeX
|
3
|
+
Author: Vladimir Moskva <vladmos@gmail.com>
|
4
|
+
Website: http://fulc.ru/
|
5
|
+
*/
|
6
|
+
|
7
|
+
hljs.LANGUAGES.tex = function() {
|
8
|
+
var COMMAND1 = {
|
9
|
+
className: 'command',
|
10
|
+
begin: '\\\\[a-zA-Zа-яА-я]+[\\*]?',
|
11
|
+
relevance: 10
|
12
|
+
};
|
13
|
+
var COMMAND2 = {
|
14
|
+
className: 'command',
|
15
|
+
begin: '\\\\[^a-zA-Zа-яА-я0-9]',
|
16
|
+
relevance: 0
|
17
|
+
};
|
18
|
+
var SPECIAL = {
|
19
|
+
className: 'special',
|
20
|
+
begin: '[{}\\[\\]\\&#~]',
|
21
|
+
relevance: 0
|
22
|
+
};
|
23
|
+
|
24
|
+
return {
|
25
|
+
defaultMode: {
|
26
|
+
contains: [
|
27
|
+
{ // parameter
|
28
|
+
begin: '\\\\[a-zA-Zа-яА-я]+[\\*]? *= *-?\\d*\\.?\\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?',
|
29
|
+
returnBegin: true,
|
30
|
+
contains: [
|
31
|
+
COMMAND1, COMMAND2,
|
32
|
+
{
|
33
|
+
className: 'number',
|
34
|
+
begin: ' *=', end: '-?\\d*\\.?\\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?',
|
35
|
+
excludeBegin: true
|
36
|
+
}
|
37
|
+
],
|
38
|
+
relevance: 10
|
39
|
+
},
|
40
|
+
COMMAND1, COMMAND2,
|
41
|
+
SPECIAL,
|
42
|
+
{
|
43
|
+
className: 'formula',
|
44
|
+
begin: '\\$\\$', end: '\\$\\$',
|
45
|
+
contains: [COMMAND1, COMMAND2, SPECIAL],
|
46
|
+
relevance: 0
|
47
|
+
},
|
48
|
+
{
|
49
|
+
className: 'formula',
|
50
|
+
begin: '\\$', end: '\\$',
|
51
|
+
contains: [COMMAND1, COMMAND2, SPECIAL],
|
52
|
+
relevance: 0
|
53
|
+
},
|
54
|
+
{
|
55
|
+
className: 'comment',
|
56
|
+
begin: '%', end: '$',
|
57
|
+
relevance: 0
|
58
|
+
}
|
59
|
+
]
|
60
|
+
}
|
61
|
+
};
|
62
|
+
}();
|
@@ -0,0 +1,75 @@
|
|
1
|
+
/*
|
2
|
+
Language: Vala
|
3
|
+
Author: Antono Vasiljev <antono.vasiljev@gmail.com>
|
4
|
+
Description: Vala is a new programming language that aims to bring modern programming language features to GNOME developers without imposing any additional runtime requirements and without using a different ABI compared to applications and libraries written in C.
|
5
|
+
*/
|
6
|
+
|
7
|
+
hljs.LANGUAGES.vala = {
|
8
|
+
defaultMode: {
|
9
|
+
keywords: {
|
10
|
+
keyword: {
|
11
|
+
// Value types
|
12
|
+
'char': 1, 'uchar': 1, 'unichar': 1,
|
13
|
+
'int': 1, 'uint': 1, 'long': 1, 'ulong': 1,
|
14
|
+
'short': 1, 'ushort': 1,
|
15
|
+
'int8': 1, 'int16': 1, 'int32': 1, 'int64': 1,
|
16
|
+
'uint8': 1, 'uint16': 1, 'uint32': 1, 'uint64': 1,
|
17
|
+
'float': 1, 'double': 1, 'bool': 1, 'struct': 1, 'enum': 1,
|
18
|
+
'string': 1, 'void': 1,
|
19
|
+
// Reference types
|
20
|
+
'weak': 5, 'unowned': 5, 'owned': 5,
|
21
|
+
// Modifiers
|
22
|
+
'async': 5, 'signal': 5, 'static': 1, 'abstract': 1, 'interface': 1, 'override': 1,
|
23
|
+
// Control Structures
|
24
|
+
'while': 1, 'do': 1, 'for': 1, 'foreach': 1, 'else': 1, 'switch': 1,
|
25
|
+
'case': 1, 'break': 1, 'default': 1, 'return': 1, 'try': 1, 'catch': 1,
|
26
|
+
// Visibility
|
27
|
+
'public': 1, 'private': 1, 'protected': 1, 'internal': 1,
|
28
|
+
// Other
|
29
|
+
'using': 1, 'new': 1, 'this': 1, 'get': 1, 'set': 1, 'const': 1,
|
30
|
+
'stdout': 1, 'stdin': 1, 'stderr': 1, 'var': 1,
|
31
|
+
// Builtins
|
32
|
+
'DBus': 2, 'GLib': 2, 'CCode': 10, 'Gee': 10, 'Object': 1
|
33
|
+
},
|
34
|
+
literal: { 'false': 1, 'true': 1, 'null': 1 }
|
35
|
+
},
|
36
|
+
contains: [
|
37
|
+
{
|
38
|
+
className: 'class',
|
39
|
+
begin: '(class |interface |delegate |namespace )', end: '{',
|
40
|
+
keywords: {'class': 1, 'interface': 1},
|
41
|
+
contains: [
|
42
|
+
{
|
43
|
+
begin: '(implements|extends)', end: hljs.IMMEDIATE_RE,
|
44
|
+
keywords: {'extends': 1, 'implements': 1},
|
45
|
+
relevance: 1
|
46
|
+
},
|
47
|
+
{
|
48
|
+
className: 'title',
|
49
|
+
begin: hljs.UNDERSCORE_IDENT_RE, end: hljs.IMMEDIATE_RE
|
50
|
+
}
|
51
|
+
]
|
52
|
+
},
|
53
|
+
hljs.C_LINE_COMMENT_MODE,
|
54
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
55
|
+
{
|
56
|
+
className: 'string',
|
57
|
+
begin: '"""', end: '"""',
|
58
|
+
relevance: 5
|
59
|
+
},
|
60
|
+
hljs.APOS_STRING_MODE,
|
61
|
+
hljs.QUOTE_STRING_MODE,
|
62
|
+
hljs.C_NUMBER_MODE,
|
63
|
+
{
|
64
|
+
className: 'preprocessor',
|
65
|
+
begin: '^#', end: '$',
|
66
|
+
relevance: 2
|
67
|
+
},
|
68
|
+
{
|
69
|
+
className: 'constant',
|
70
|
+
begin: ' [A-Z_]+ ', end: hljs.IMMEDIATE_RE,
|
71
|
+
relevance: 0
|
72
|
+
}
|
73
|
+
]
|
74
|
+
}
|
75
|
+
};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/*
|
2
|
+
Language: VBScript
|
3
|
+
Author: Nikita Ledyaev <lenikita@yandex.ru>
|
4
|
+
Contributors: Michal Gabrukiewicz <mgabru@gmail.com>
|
5
|
+
*/
|
6
|
+
|
7
|
+
hljs.LANGUAGES.vbscript = {
|
8
|
+
case_insensitive: true,
|
9
|
+
defaultMode: {
|
10
|
+
keywords: {
|
11
|
+
'keyword': {'call' : 1,'class' : 1,'const' : 1,'dim' : 1,'do' : 1,'loop' : 1,'erase' : 1,'execute' : 1,'executeglobal' : 1,'exit' : 1,'for' : 1,'each' : 1,'next' : 1,'function' : 1,'if' : 1,'then' : 1,'else' : 1,'on' : 1, 'error' : 1,'option' : 1, 'explicit' : 1, 'new': 1, 'private' : 1,'property' : 1,'let' : 1,'get' : 1,'public' : 1,'randomize' : 1,'redim' : 1,'rem' : 1,'select' : 1,'case' : 1,'set' : 1,'stop' : 1,'sub' : 1,'while' : 1,'wend' : 1,'with' : 1, 'end' : 1, 'to' : 1, 'elseif': 1, 'is': 1, 'or': 1, 'xor': 1, 'and': 1, 'not': 1, 'class_initialize': 1, 'class_terminate': 1, 'default': 1, 'preserve': 1, 'in': 1, 'me': 1, 'byval': 1, 'byref': 1, 'step': 1, 'resume': 1, 'goto': 1},
|
12
|
+
'built_in': {'lcase': 1, 'month': 1, 'vartype': 1, 'instrrev': 1, 'ubound': 1, 'setlocale': 1, 'getobject': 1, 'rgb': 1, 'getref': 1, 'string': 1, 'weekdayname': 1, 'rnd': 1, 'dateadd': 1, 'monthname': 1, 'now': 1, 'day': 1, 'minute': 1, 'isarray': 1, 'cbool': 1, 'round': 1, 'formatcurrency': 1, 'conversions': 1, 'csng': 1, 'timevalue': 1, 'second': 1, 'year': 1, 'space': 1, 'abs': 1, 'clng': 1, 'timeserial': 1, 'fixs': 1, 'len': 1, 'asc': 1, 'isempty': 1, 'maths': 1, 'dateserial': 1, 'atn': 1, 'timer': 1, 'isobject': 1, 'filter': 1, 'weekday': 1, 'datevalue': 1, 'ccur': 1, 'isdate': 1, 'instr': 1, 'datediff': 1, 'formatdatetime': 1, 'replace': 1, 'isnull': 1, 'right': 1, 'sgn': 1, 'array': 1, 'snumeric': 1, 'log': 1, 'cdbl': 1, 'hex': 1, 'chr': 1, 'lbound': 1, 'msgbox': 1, 'ucase': 1, 'getlocale': 1, 'cos': 1, 'cdate': 1, 'cbyte': 1, 'rtrim': 1, 'join': 1, 'hour': 1, 'oct': 1, 'typename': 1, 'trim': 1, 'strcomp': 1, 'int': 1, 'createobject': 1, 'loadpicture': 1, 'tan': 1, 'formatnumber': 1, 'mid': 1, 'scriptenginebuildversion': 1, 'scriptengine': 1, 'split': 1, 'scriptengineminorversion': 1, 'cint': 1, 'sin': 1, 'datepart': 1, 'ltrim': 1, 'sqr': 1, 'scriptenginemajorversion': 1, 'time': 1, 'derived': 1, 'eval': 1, 'date': 1, 'formatpercent': 1, 'exp': 1, 'inputbox': 1, 'left': 1, 'ascw': 1, 'chrw': 1, 'regexp': 1, 'server': 1, 'response': 1, 'request': 1, 'cstr': 1, 'err': 1},
|
13
|
+
'literal': {'true': 1, 'false': 1, 'null': 1, 'nothing': 1, 'empty': 1}
|
14
|
+
},
|
15
|
+
contains: [
|
16
|
+
{ // can't use standard QUOTE_STRING_MODE since it's compiled with its own escape and doesn't use the local one
|
17
|
+
className: 'string',
|
18
|
+
begin: '"', end: '"',
|
19
|
+
illegal: '\\n',
|
20
|
+
contains: [{begin: '""'}],
|
21
|
+
relevance: 0
|
22
|
+
},
|
23
|
+
{
|
24
|
+
className: 'comment',
|
25
|
+
begin: '\'', end: '$'
|
26
|
+
},
|
27
|
+
hljs.C_NUMBER_MODE
|
28
|
+
]
|
29
|
+
}
|
30
|
+
};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/*
|
2
|
+
Language: VHDL
|
3
|
+
Description: VHDL is a hardware description language used in electronic design automation to describe digital and mixed-signal systems.
|
4
|
+
Author: Igor Kalnitsky <igor.kalnitsky@gmail.com>
|
5
|
+
Website: http://kalnitsky.org.ua/
|
6
|
+
*/
|
7
|
+
|
8
|
+
hljs.LANGUAGES.vhdl = {
|
9
|
+
case_insensitive: true,
|
10
|
+
defaultMode: {
|
11
|
+
keywords: {
|
12
|
+
'keyword': { 'abs': 1, 'access': 1, 'after': 1, 'alias': 1, 'all': 1, 'and': 1, 'architecture': 2, 'array': 1, 'assert': 1, 'attribute': 1, 'begin': 1, 'block': 1, 'body': 1, 'buffer': 1, 'bus': 1, 'case': 1, 'component': 2, 'configuration': 1, 'constant': 1, 'disconnect': 2, 'downto': 2, 'else': 1, 'elsif': 1, 'end': 1, 'entity': 2, 'exit': 1, 'file': 1, 'for': 1, 'function': 1, 'generate': 2, 'generic': 2, 'group': 1, 'guarded': 2, 'if': 0, 'impure': 2, 'in': 1, 'inertial': 1, 'inout': 1, 'is': 1, 'label': 1, 'library': 1, 'linkage': 1, 'literal': 1, 'loop': 1, 'map': 1, 'mod': 1, 'nand': 1, 'new': 1, 'next': 1, 'nor': 1, 'not': 1, 'null': 1, 'of': 1, 'on': 1, 'open': 1, 'or': 1, 'others': 1, 'out': 1, 'package': 1, 'port': 2, 'postponed': 1, 'procedure': 1, 'process': 1, 'pure': 2, 'range': 1, 'record': 1, 'register': 1, 'reject': 1, 'return': 1, 'rol': 1, 'ror': 1, 'select': 1, 'severity': 1, 'signal': 1, 'shared': 1, 'sla': 1, 'sli': 1, 'sra': 1, 'srl': 1, 'subtype': 2, 'then': 1, 'to': 1, 'transport': 1, 'type': 1, 'units': 1, 'until': 1, 'use': 1, 'variable': 1, 'wait': 1, 'when': 1, 'while': 1, 'with': 1, 'xnor': 1, 'xor': 1},
|
13
|
+
'type': { 'boolean': 1, 'bit': 1, 'character': 1, 'severity_level': 2, 'integer': 1, 'time': 1, 'delay_length': 2, 'natural': 1, 'positive': 1, 'string': 1, 'bit_vector': 2, 'file_open_kind': 2, 'file_open_status': 2, 'std_ulogic': 2, 'std_ulogic_vector': 2, 'std_logic': 2, 'std_logic_vector': 2 }
|
14
|
+
},
|
15
|
+
contains: [
|
16
|
+
{
|
17
|
+
className: 'comment',
|
18
|
+
begin: '--', end: '$'
|
19
|
+
},
|
20
|
+
hljs.QUOTE_STRING_MODE,
|
21
|
+
hljs.C_NUMBER_MODE,
|
22
|
+
{
|
23
|
+
className: 'literal',
|
24
|
+
begin: '\'(U|X|0|1|Z|W|L|H|-)', end: '\'',
|
25
|
+
contains: [hljs.BACKSLASH_ESCAPE],
|
26
|
+
relevance: 5
|
27
|
+
}
|
28
|
+
]
|
29
|
+
}
|
30
|
+
};
|
@@ -0,0 +1,103 @@
|
|
1
|
+
/*
|
2
|
+
Language: HTML, XML
|
3
|
+
*/
|
4
|
+
|
5
|
+
hljs.LANGUAGES.xml = function(){
|
6
|
+
var XML_IDENT_RE = '[A-Za-z0-9\\._:-]+';
|
7
|
+
var TAG_INTERNALS = {
|
8
|
+
endsWithParent: true,
|
9
|
+
contains: [
|
10
|
+
{
|
11
|
+
className: 'attribute',
|
12
|
+
begin: XML_IDENT_RE,
|
13
|
+
relevance: 0
|
14
|
+
},
|
15
|
+
{
|
16
|
+
begin: '="', returnBegin: true, end: '"',
|
17
|
+
contains: [{
|
18
|
+
className: 'value',
|
19
|
+
begin: '"', endsWithParent: true
|
20
|
+
}]
|
21
|
+
},
|
22
|
+
{
|
23
|
+
begin: '=\'', returnBegin: true, end: '\'',
|
24
|
+
contains: [{
|
25
|
+
className: 'value',
|
26
|
+
begin: '\'', endsWithParent: true
|
27
|
+
}]
|
28
|
+
},
|
29
|
+
{
|
30
|
+
begin: '=',
|
31
|
+
contains: [{
|
32
|
+
className: 'value',
|
33
|
+
begin: '[^\\s/>]+'
|
34
|
+
}]
|
35
|
+
}
|
36
|
+
]
|
37
|
+
};
|
38
|
+
return {
|
39
|
+
case_insensitive: true,
|
40
|
+
defaultMode: {
|
41
|
+
contains: [
|
42
|
+
{
|
43
|
+
className: 'pi',
|
44
|
+
begin: '<\\?', end: '\\?>',
|
45
|
+
relevance: 10
|
46
|
+
},
|
47
|
+
{
|
48
|
+
className: 'doctype',
|
49
|
+
begin: '<!DOCTYPE', end: '>',
|
50
|
+
relevance: 10,
|
51
|
+
contains: [{begin: '\\[', end: '\\]'}]
|
52
|
+
},
|
53
|
+
{
|
54
|
+
className: 'comment',
|
55
|
+
begin: '<!--', end: '-->',
|
56
|
+
relevance: 10
|
57
|
+
},
|
58
|
+
{
|
59
|
+
className: 'cdata',
|
60
|
+
begin: '<\\!\\[CDATA\\[', end: '\\]\\]>',
|
61
|
+
relevance: 10
|
62
|
+
},
|
63
|
+
{
|
64
|
+
className: 'tag',
|
65
|
+
begin: '<style', end: '>',
|
66
|
+
keywords: {'title': {'style': 1}},
|
67
|
+
contains: [TAG_INTERNALS],
|
68
|
+
starts: {
|
69
|
+
className: 'css',
|
70
|
+
end: '</style>', returnEnd: true,
|
71
|
+
subLanguage: 'css'
|
72
|
+
}
|
73
|
+
},
|
74
|
+
{
|
75
|
+
className: 'tag',
|
76
|
+
begin: '<script', end: '>',
|
77
|
+
keywords: {'title': {'script': 1}},
|
78
|
+
contains: [TAG_INTERNALS],
|
79
|
+
starts: {
|
80
|
+
className: 'javascript',
|
81
|
+
end: '</script>', returnEnd: true,
|
82
|
+
subLanguage: 'javascript'
|
83
|
+
}
|
84
|
+
},
|
85
|
+
{
|
86
|
+
className: 'vbscript',
|
87
|
+
begin: '<%', end: '%>',
|
88
|
+
subLanguage: 'vbscript'
|
89
|
+
},
|
90
|
+
{
|
91
|
+
className: 'tag',
|
92
|
+
begin: '</?', end: '/?>',
|
93
|
+
contains: [
|
94
|
+
{
|
95
|
+
className: 'title', begin: '[^ />]+'
|
96
|
+
},
|
97
|
+
TAG_INTERNALS
|
98
|
+
]
|
99
|
+
}
|
100
|
+
]
|
101
|
+
}
|
102
|
+
};
|
103
|
+
}();
|
@@ -0,0 +1,151 @@
|
|
1
|
+
/*
|
2
|
+
Date: 17.V.2011
|
3
|
+
Author: pumbur <pumbur@pumbur.net>
|
4
|
+
*/
|
5
|
+
|
6
|
+
pre code
|
7
|
+
{
|
8
|
+
display: block; padding: 0.5em;
|
9
|
+
background: #222;
|
10
|
+
}
|
11
|
+
|
12
|
+
pre .header,
|
13
|
+
pre .profile .header *,
|
14
|
+
pre .ini .title
|
15
|
+
{
|
16
|
+
color: #fff;
|
17
|
+
}
|
18
|
+
|
19
|
+
pre .comment,
|
20
|
+
pre .javadoc,
|
21
|
+
pre .preprocessor,
|
22
|
+
pre .shebang,
|
23
|
+
pre .profile .summary,
|
24
|
+
pre .diff,
|
25
|
+
pre .pi,
|
26
|
+
pre .doctype,
|
27
|
+
pre .xml .tag,
|
28
|
+
pre .template_comment,
|
29
|
+
pre .css .rules,
|
30
|
+
pre .tex .special
|
31
|
+
{
|
32
|
+
color: #444;
|
33
|
+
}
|
34
|
+
|
35
|
+
pre .string,
|
36
|
+
pre .symbol,
|
37
|
+
pre .diff .change,
|
38
|
+
pre .regexp,
|
39
|
+
pre .xml .attribute,
|
40
|
+
pre .xml .value,
|
41
|
+
pre .smalltalk .char,
|
42
|
+
pre .ini .value
|
43
|
+
{
|
44
|
+
color: #ffcc33;
|
45
|
+
}
|
46
|
+
|
47
|
+
pre .number,
|
48
|
+
pre .addition
|
49
|
+
{
|
50
|
+
color: #00cc66;
|
51
|
+
}
|
52
|
+
|
53
|
+
pre .built_in,
|
54
|
+
pre .literal,
|
55
|
+
pre .vhdl .type,
|
56
|
+
pre .go .constant,
|
57
|
+
pre .go .typename,
|
58
|
+
pre .ini .keyword,
|
59
|
+
pre .lua .title,
|
60
|
+
pre .perl .variable,
|
61
|
+
pre .php .variable,
|
62
|
+
pre .mel .variable,
|
63
|
+
pre .django .variable,
|
64
|
+
pre .css .funtion,
|
65
|
+
pre .smalltalk .method,
|
66
|
+
pre .hexcolor,
|
67
|
+
pre .important,
|
68
|
+
pre .flow,
|
69
|
+
pre .inheritance,
|
70
|
+
pre .parser3 .variable
|
71
|
+
{
|
72
|
+
color: #32AAEE;
|
73
|
+
}
|
74
|
+
|
75
|
+
pre .keyword,
|
76
|
+
pre .xml .tag .title,
|
77
|
+
pre .css .tag,
|
78
|
+
pre .css .class,
|
79
|
+
pre .css .id,
|
80
|
+
pre .css .pseudo,
|
81
|
+
pre .css .attr_selector,
|
82
|
+
pre .lisp .title,
|
83
|
+
pre .winutils,
|
84
|
+
pre .tex .command
|
85
|
+
{
|
86
|
+
color: #6644aa;
|
87
|
+
}
|
88
|
+
|
89
|
+
pre .class .title,
|
90
|
+
pre .ruby .constant,
|
91
|
+
pre .vala .constant,
|
92
|
+
pre .parent,
|
93
|
+
pre .deletion,
|
94
|
+
pre .template_tag,
|
95
|
+
pre .css .keyword,
|
96
|
+
pre .javascript .title,
|
97
|
+
pre .objectivec .class .id,
|
98
|
+
pre .smalltalk .class,
|
99
|
+
pre .lisp .keyword,
|
100
|
+
pre .apache .tag,
|
101
|
+
pre .nginx .variable,
|
102
|
+
pre .envvar,
|
103
|
+
pre .bash .variable,
|
104
|
+
pre .go .built_in,
|
105
|
+
pre .vbscript .built_in,
|
106
|
+
pre .lua .built_in,
|
107
|
+
pre .rsl .built_in,
|
108
|
+
pre .tail,
|
109
|
+
pre .avrasm .label,
|
110
|
+
pre .parser3 .title,
|
111
|
+
pre .tex .formula,
|
112
|
+
pre .tex .formula *
|
113
|
+
{
|
114
|
+
color: #bb1166;
|
115
|
+
}
|
116
|
+
|
117
|
+
pre .yardoctag,
|
118
|
+
pre .phpdoc,
|
119
|
+
pre .profile .header,
|
120
|
+
pre .ini .title,
|
121
|
+
pre .apache .tag,
|
122
|
+
pre .parser3 .title
|
123
|
+
{
|
124
|
+
font-weight: bold;
|
125
|
+
}
|
126
|
+
|
127
|
+
pre .xml .javascript,
|
128
|
+
pre .xml .css,
|
129
|
+
pre .xml .cdata
|
130
|
+
{
|
131
|
+
opacity: 0.6;
|
132
|
+
}
|
133
|
+
|
134
|
+
pre code,
|
135
|
+
pre .javascript,
|
136
|
+
pre .css,
|
137
|
+
pre .xml,
|
138
|
+
pre .subst,
|
139
|
+
pre .diff .chunk,
|
140
|
+
pre .css .value,
|
141
|
+
pre .css .attribute,
|
142
|
+
pre .lisp .string,
|
143
|
+
pre .lisp .number,
|
144
|
+
pre .tail .params,
|
145
|
+
pre .container,
|
146
|
+
pre .haskell *,
|
147
|
+
pre .erlang *,
|
148
|
+
pre .erlang_repl *
|
149
|
+
{
|
150
|
+
color: #aaa;
|
151
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
|
4
|
+
|
5
|
+
*/
|
6
|
+
|
7
|
+
pre code {
|
8
|
+
display: block; padding: 0.5em;
|
9
|
+
background: white; color: black;
|
10
|
+
}
|
11
|
+
|
12
|
+
pre .string,
|
13
|
+
pre .tag .value,
|
14
|
+
pre .filter .argument,
|
15
|
+
pre .addition,
|
16
|
+
pre .change,
|
17
|
+
pre .apache .tag,
|
18
|
+
pre .apache .cbracket,
|
19
|
+
pre .nginx .built_in,
|
20
|
+
pre .tex .formula {
|
21
|
+
color: #888;
|
22
|
+
}
|
23
|
+
|
24
|
+
pre .comment,
|
25
|
+
pre .template_comment,
|
26
|
+
pre .shebang,
|
27
|
+
pre .doctype,
|
28
|
+
pre .pi,
|
29
|
+
pre .javadoc,
|
30
|
+
pre .deletion,
|
31
|
+
pre .apache .sqbracket {
|
32
|
+
color: #CCC;
|
33
|
+
}
|
34
|
+
|
35
|
+
pre .keyword,
|
36
|
+
pre .tag .title,
|
37
|
+
pre .css .tag,
|
38
|
+
pre .ini .title,
|
39
|
+
pre .winutils,
|
40
|
+
pre .flow,
|
41
|
+
pre .lisp .title,
|
42
|
+
pre .apache .tag,
|
43
|
+
pre .tex .command {
|
44
|
+
font-weight: bold;
|
45
|
+
}
|