From 5bfc5356a9b80d8e60b14ab4d88964e5f7cb6f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Mon, 16 Jan 2017 17:19:40 +0200 Subject: [PATCH] Add Go syntax highlighting to the guides. --- guide/index.html | 1 + static/scripts/highlight-go.min.js | 1 + 2 files changed, 2 insertions(+) create mode 100644 static/scripts/highlight-go.min.js diff --git a/guide/index.html b/guide/index.html index 6f35663bc9..c9ec879d62 100644 --- a/guide/index.html +++ b/guide/index.html @@ -21,6 +21,7 @@ + diff --git a/static/scripts/highlight-go.min.js b/static/scripts/highlight-go.min.js new file mode 100644 index 0000000000..cf58a7e0e1 --- /dev/null +++ b/static/scripts/highlight-go.min.js @@ -0,0 +1 @@ +hljs.registerLanguage("go",function(e){var t={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{aliases:["golang"],k:t,i:"