aboutsummaryrefslogtreecommitdiffstats
path: root/filters/syntax-highlighting.js/README
diff options
context:
space:
mode:
Diffstat (limited to 'filters/syntax-highlighting.js/README')
-rw-r--r--filters/syntax-highlighting.js/README14
1 files changed, 14 insertions, 0 deletions
diff --git a/filters/syntax-highlighting.js/README b/filters/syntax-highlighting.js/README
new file mode 100644
index 0000000..9ea3a7f
--- /dev/null
+++ b/filters/syntax-highlighting.js/README
@@ -0,0 +1,14 @@
+Serve this directory at /syntax-highlighting.js/ (by symlinking it from
+filters/, for example) and configure cgit:
+
+ js=/cgit.js
+ js=/syntax-highlighting.js/loader.js
+
+Remove source-filter and repo.source-filter settings. Styles and language
+modules load automatically from the same directory as loader.js.
+Pastie and Pastie Dark follow the browser's color preference.
+
+To generate the required files, install Python 3, Pygments, and Node.js,
+then run from this directory:
+
+ ./generate.py