You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mrsdizzie af7ffaa279
Server-side syntax highlighting for all code (#12047)
* Server-side syntax hilighting for all code

This PR does a few things:

* Remove all traces of highlight.js
* Use chroma library to provide fast syntax hilighting directly on the server
* Provide syntax hilighting for diffs
* Re-style both unified and split diffs views
* Add custom syntax hilighting styling for both regular and arc-green

Fixes #7729
Fixes #10157
Fixes #11825
Fixes #7728
Fixes #3872
Fixes #3682

And perhaps gets closer to #9553

* fix line marker

* fix repo search

* Fix single line select

* properly load settings

* npm uninstall highlight.js

* review suggestion

* code review

* forgot to call function

* fix test

* Apply suggestions from code review

suggestions from @silverwind thanks

Co-authored-by: silverwind <me@silverwind.io>

* code review

* copy/paste error

* Use const for highlight size limit

* Update web_src/less/_repository.less

Co-authored-by: Lauris BH <lauris@nix.lv>

* update size limit to 1MB and other styling tweaks

* fix highlighting for certain diff sections

* fix test

* add worker back as suggested

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years ago
..
branch Allow unauthenticated users to compare (#11240) 4 years ago
diff Server-side syntax highlighting for all code (#12047) 4 years ago
editor Allow different HardBreaks settings for documents and comments (#11515) 4 years ago
issue Show description on individual milestone view (#12055) 4 years ago
pulls Prettify timeline 3 (#11139) 4 years ago
release Add compare link to releases (#11752) 4 years ago
settings Fix webhook template when validation errors occur (#11421) 4 years ago
wiki Fix images in wiki edit preview (#11546) 4 years ago
activity.tmpl Remove last traces of has-emoji class (#11263) 4 years ago
blame.tmpl Server-side syntax highlighting for all code (#12047) 4 years ago
branch_dropdown.tmpl Add Octicon SVG spritemap (#10107) 4 years ago
commit_page.tmpl Use custom SVGs for commit signing lock icon (#12017) 4 years ago
commit_status.tmpl UI: Fix overflow issues in repo (#7190) 5 years ago
commits.tmpl Add Octicon SVG spritemap (#10107) 4 years ago
commits_list.tmpl Show full GPG commit status on PR commit history (#11702) 4 years ago
commits_list_small.tmpl Fix message wrapping on PR commit list (#11616) 4 years ago
commits_table.tmpl Add Octicon SVG spritemap (#10107) 4 years ago
create.tmpl Global default branch setting (#11918) 4 years ago
empty.tmpl Global default branch setting (#11918) 4 years ago
forks.tmpl #3348 always use relative avatar link in the template 8 years ago
graph.tmpl Handle multiple merges in gitgraph.js (#11996) 4 years ago
header.tmpl Use label to describe repository type (#11891) 4 years ago
header_icon.tmpl Add org avatar on top of internal repo icon (#11895) 4 years ago
home.tmpl Use Fomantic's fluid padded for blame full width (#12023) 4 years ago
migrate.tmpl Allow site admin to disable mirrors (#11740) 4 years ago
migrating.tmpl [assets] configurable URL for static resources (#7911) 5 years ago
search.tmpl Server-side syntax highlighting for all code (#12047) 4 years ago
shabox_badge.tmpl Use custom SVGs for commit signing lock icon (#12017) 4 years ago
sub_menu.tmpl UI: Fix wrong closing tag (#11910) 4 years ago
user_cards.tmpl Add Octicon SVG spritemap (#10107) 4 years ago
view_file.tmpl Server-side syntax highlighting for all code (#12047) 4 years ago
view_list.tmpl Fix reply octicon (#11821) 4 years ago
watchers.tmpl #1692 APIs: Users Followers 9 years ago