Skip to content

Commit

Permalink
Switch to highlight.js v9.4.0. Enlight v1.14.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Qeole committed May 20, 2016
1 parent 6f3d9f8 commit 09ddfcd
Show file tree
Hide file tree
Showing 12 changed files with 111 additions and 1,326 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ highlight.js project.

Syntax highlighting relies on highlight.js project (see [project
homepage][hljs]. Currently packaged with the add-on is the version
9.3.0 of highlight.js, which provides
72 color themes and syntax for
152 languages.
9.4.0 of highlight.js, which provides
73 color themes and syntax for
155 languages.

## Install

Expand Down
7 changes: 3 additions & 4 deletions data/highlightjs/highlight.js

Large diffs are not rendered by default.

96 changes: 96 additions & 0 deletions data/highlightjs/styles/purebasic.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
/*
PureBASIC native IDE style ( version 1.0 - April 2016 )
by Tristano Ajmone <[email protected]>
Public Domain
NOTE_1: PureBASIC code syntax highlighting only applies the following classes:
.hljs-comment
.hljs-function
.hljs-keywords
.hljs-string
.hljs-symbol
Other classes are added here for the benefit of styling other languages with the look and feel of PureBASIC native IDE style.
If you need to customize a stylesheet for PureBASIC only, remove all non-relevant classes -- PureBASIC-related classes are followed by
a "--- used for PureBASIC ... ---" comment on same line.
NOTE_2: Color names provided in comments were derived using "Name that Color" online tool:
http://chir.ag/projects/name-that-color
*/

.hljs { /* Common set of rules required by highlight.js (don'r remove!) */
display: block;
overflow-x: auto;
padding: 0.5em;
background: #FFFFDF; /* Half and Half (approx.) */
/* --- Uncomment to add PureBASIC native IDE styled font!
font-family: Consolas;
*/
}

.hljs, /* --- used for PureBASIC base color --- */
.hljs-type, /* --- used for PureBASIC Procedures return type --- */
.hljs-function, /* --- used for wrapping PureBASIC Procedures definitions --- */
.hljs-name,
.hljs-number,
.hljs-attr,
.hljs-params,
.hljs-subst {
color: #000000; /* Black */
}

.hljs-comment, /* --- used for PureBASIC Comments --- */
.hljs-regexp,
.hljs-section,
.hljs-selector-pseudo,
.hljs-addition {
color: #00AAAA; /* Persian Green (approx.) */
}

.hljs-title, /* --- used for PureBASIC Procedures Names --- */
.hljs-tag,
.hljs-variable,
.hljs-code {
color: #006666; /* Blue Stone (approx.) */
}

.hljs-keyword, /* --- used for PureBASIC Keywords --- */
.hljs-class,
.hljs-meta-keyword,
.hljs-selector-class,
.hljs-built_in,
.hljs-builtin-name {
color: #006666; /* Blue Stone (approx.) */
font-weight: bold;
}

.hljs-string, /* --- used for PureBASIC Strings --- */
.hljs-selector-attr {
color: #0080FF; /* Azure Radiance (approx.) */
}

.hljs-symbol, /* --- used for PureBASIC Constants --- */
.hljs-link,
.hljs-deletion,
.hljs-attribute {
color: #924B72; /* Cannon Pink (approx.) */
}

.hljs-meta,
.hljs-literal,
.hljs-selector-id {
color: #924B72; /* Cannon Pink (approx.) */
font-weight: bold;
}

.hljs-strong,
.hljs-name {
font-weight: bold;
}

.hljs-emphasis {
font-style: italic;
}
2 changes: 1 addition & 1 deletion data/highlightjs/styles/xt256.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
overflow-x: auto;
color: #eaeaea;
background: #000;
padding: 0.5e;
padding: 0.5;
}

.hljs-subst {
Expand Down
3 changes: 3 additions & 0 deletions data/languages-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"1c" : "1C",
"accesslog" : "Access logs",
"actionscript" : "ActionScript",
"ada" : "Ada",
"applescript" : "AppleScript",
"arduino" : "Arduino",
"armasm" : "ARM Assembly",
Expand All @@ -35,6 +36,7 @@
"avrasm" : "AVR Assembly",
"axapta" : "Axapta",
"basic" : "Basic",
"bnf" : "BNF",
"brainfuck" : "Brainfuck",
"cos" : "Caché Object Script",
"cal" : "C/AL",
Expand Down Expand Up @@ -113,6 +115,7 @@
"prolog" : "Prolog",
"protobuf" : "Protocol Buffers",
"puppet" : "Puppet",
"purebasic" : "PureBASIC",
"profile" : "Python Profile",
"q" : "Q",
"qml" : "QML",
Expand Down
Binary file removed [email protected]
Binary file not shown.
Binary file added [email protected]
Binary file not shown.
Loading

0 comments on commit 09ddfcd

Please sign in to comment.