summaryrefslogtreecommitdiffstats
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2021-08-30get_lexer_list.py: Use python3 instead of pythonkeigel20011-1/+1
Starting with the Debian 11 (bullseye) and Ubuntu 20.04 LTS (focal) releases, all python packages use explicit python3 or python2 interpreter and do not use unversioned /usr/bin/python at all. No packaged scripts should depend on the existence of '/usr/bin/python'.
2016-11-05install-git-hooks.sh: Add missing -s to lnFlorian Pritz1-1/+1
Broken in 9efd2db81ccf987a5455e0e4575c7d3f9072870f Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-01scripts/install-git-hooks.sh: Drop ln -r to support busybox lnFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-01scripts/install-git-hooks.sh: Catch errorsFlorian Pritz1-0/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-31Install git hooks as relative symlinksFlorian Pritz1-1/+1
Absolute symlinks break when the installation is moved on the server and provide no value. Also update the post-merge hook so that it performs this change. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-06-12Switch to PHP based markdown renderer (parsedown)Florian Pritz1-147/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-28get_lexer_list.py: Use /usr/bin/env shebangFlorian Pritz1-1/+1
This is more portable and allows for PATH overrides in case /usr/bin/python is too old (2.6) to run this file. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-22No need to remove main.min.*.js anymore. Relict from earlier stage.Joakim Reinert1-1/+0
2015-05-05Clean up old main.min.*.js filesFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-05Set cache buster for js with urlArgs settingJoakim Reinert1-1/+1
No more need for timestamp in filename of minified main js
2015-05-05Fix shebangsFlorian Pritz3-3/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-05Add install script for git hooksJoakim Reinert2-0/+27
2015-05-05Add support for minified main.jsJoakim Reinert2-0/+29008
2015-04-09Fix mime2lexer failing when using pygments infoFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-02Improve performance of pygments->mime2lexerFlorian Pritz1-3/+6
Normal arrays are rather slow when accessed sequentially. Use associative arrays and key lookups to reduce the render time of a multipaste with 180 items from 225ms to ~190ms. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-01Refactor \libraries\Pygments::get_lexersFlorian Pritz1-3/+11
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-08-14Use python-ansi2html instead of cpan moduleFlorian Pritz1-20/+0
Way, way, way, way faster. Did I mention it is faster? Also we now have line numbers because we can. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-03Use php's fileinfo instead of perl to detect mimetypeFlorian Pritz1-38/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-22switch design to bootstrap; minor fixes along the wayFlorian Pritz1-0/+7
Initial-work-by: Oliver Mader <b52@reaktor42.de> Additional-work-by: Markus Cisler <mrkscslr@gmail.com> Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-07scripts/mimetype: detect ascii with long lines correctlyFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-14install.php: rework perl dependency checkFlorian Pritz1-8/+0
It now displays all missing modules at once rather than requiring to be run again. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-12-20add Text::Markdown to install_helper.plFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-12-17use perl from PATH and copy markdown.pl to scripts/Florian Pritz1-0/+147
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-11-18add install.phpFlorian Pritz1-0/+7
For now this only checks if some dependencies are install. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-08-21mimetype: use magicFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-08-15rewrite scripts/mimetype to support ascii with color codesFlorian Pritz1-475/+31
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-07-01add ascii highlighting with escape color supportFlorian Pritz1-0/+20
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2010-08-14switch to pygments for highlightingFlorian Pritz1-163/+0
Signed-off-by: Florian Pritz <bluewind@xssn.at>
2010-07-12syntax-highlighting.sh: fix for highlight 3.1Florian Pritz1-143/+143
Signed-off-by: Florian Pritz <bluewind@xssn.at>
2010-04-01mimetype: add --orig-name and use itFlorian Pritz1-0/+9
Signed-off-by: Florian Pritz <bluewind@xssn.at>
2010-04-01add mimetype scriptFlorian Pritz1-0/+473
Signed-off-by: Florian Pritz <bluewind@xssn.at>
2010-04-01add highlight typesFlorian Pritz1-2/+2
Signed-off-by: Florian Pritz <bluewind@xssn.at>
2010-02-06Initial commitFlorian Pritz1-0/+163
Signed-off-by: Florian Pritz <bluewind@xssn.at>