Update syntax highlighting support
Adds new languages and removes an unused language. The built, minified and gzipped size of the HighlightJS library increases from 17KB to 25KB. Change-Id: Id3c83e5b0592b85c9f2adf53f07b6852966dcced
This commit is contained in:
@@ -22,8 +22,35 @@ languages included. Build it with the following:
|
||||
$> # start in some temp directory
|
||||
$> git clone https://github.com/isagalaev/highlight.js.git
|
||||
$> cd highlight.js
|
||||
$> node tools/build.js -n json css xml html javascript cpp go haskell \
|
||||
markdown perl python bash sql scala prolog java objectivec
|
||||
$> node tools/build.js -n \
|
||||
bash \
|
||||
cpp \
|
||||
cs \
|
||||
clojure \
|
||||
css \
|
||||
d \
|
||||
dart \
|
||||
go \
|
||||
haskell \
|
||||
java \
|
||||
javascript \
|
||||
json \
|
||||
lisp \
|
||||
lua \
|
||||
markdown \
|
||||
objectivec \
|
||||
ocaml \
|
||||
perl \
|
||||
protobuf \
|
||||
python \
|
||||
ruby \
|
||||
rust \
|
||||
scala \
|
||||
sql \
|
||||
swift \
|
||||
typescript \
|
||||
xml \
|
||||
yaml
|
||||
|
||||
The resulting JS file will appear in the "build" directory of the Highlight.js
|
||||
repo under the name "highlight.pack.js".
|
||||
|
131
lib/highlightjs/highlight.min.js
vendored
131
lib/highlightjs/highlight.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user