0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-27 11:44:20 +01:00
gitea/vendor/github.com
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>
2020-07-01 00:34:03 +03:00
..
alecthomas/chroma Server-side syntax highlighting for all code (#12047) 2020-07-01 00:34:03 +03:00
andybalholm Dump: add output format tar and output to stdout (#10376) 2020-06-05 16:47:39 -04:00
anmitsu/go-shlex
asaskevich/govalidator
aymerick/douceur upgrade to most recent bluemonday (#11007) 2020-04-07 23:08:47 +03:00
beorn7/perks
blevesearch [Vendor] blevesearch v0.8.1 -> v1.0.7 (#11360) 2020-05-10 06:40:54 +01:00
boombuler/barcode Update github.com/pquerna/otp from untagged to v1.2.0 (#11358) 2020-05-10 15:50:16 +03:00
bradfitz/gomemcache
BurntSushi/toml
chris-ramon/douceur upgrade to most recent bluemonday (#11007) 2020-04-07 23:08:47 +03:00
couchbase [Vendor] blevesearch v0.8.1 -> v1.0.7 (#11360) 2020-05-10 06:40:54 +01:00
couchbaselabs/go-couchbase
danwakefield/fnmatch Server-side syntax highlighting for all code (#12047) 2020-07-01 00:34:03 +03:00
davecgh/go-spew
denisenkom/go-mssqldb [Vendor] mssqldb: 2019-11-28 -> 2020-04-28 (#11364) 2020-05-10 18:42:52 +01:00
dgrijalva/jwt-go
dlclark/regexp2 Server-side syntax highlighting for all code (#12047) 2020-07-01 00:34:03 +03:00
dsnet/compress Dump: add output format tar and output to stdout (#10376) 2020-06-05 16:47:39 -04:00
dustin/go-humanize
editorconfig/editorconfig-core-go/v2
emirpasic/gods
ethantkoenig/rupture
fatih Rename scripts to build and add revive command as a new build tool command (#10942) 2020-04-03 22:29:12 +03:00
fsnotify/fsnotify
gliderlabs/ssh
glycerine/go-unsnap-stream
go-enry Exclude generated files from language statistics (#11653) 2020-05-29 09:20:01 +03:00
go-git Update to go-git v5.1.0 (#11936) 2020-06-17 19:29:38 -04:00
go-openapi
go-redis/redis
go-sql-driver/mysql
go-stack/stack
go-swagger/go-swagger
go-testfixtures/testfixtures/v3 upgrade to use testfixtures v3 (#11904) 2020-06-17 22:07:58 +03:00
gobwas/glob
gogs
golang Dump: add output format tar and output to stdout (#10376) 2020-06-05 16:47:39 -04:00
golang-sql/civil
google Use google/uuid to instead satori/go.uuid (#11943) 2020-06-18 17:18:44 +08:00
gorilla Server-side syntax highlighting for all code (#12047) 2020-07-01 00:34:03 +03:00
hashicorp Vendor Update: go-gitlab v0.22.1 -> v0.31.0 (#11136) 2020-04-19 21:23:05 +01:00
huandu/xstrings
imdario/mergo Update to go-git v5.1.0 (#11936) 2020-06-17 19:29:38 -04:00
issue9/identicon Update github.com/issue9/identicon from untagged to v1.0.1 (#11359) 2020-05-10 06:23:17 -04:00
jaytaylor/html2text
jbenet/go-context
jessevdk/go-flags
kballard/go-shellquote
kevinburke/ssh_config
keybase/go-crypto
klauspost Dump: add output format tar and output to stdout (#10376) 2020-06-05 16:47:39 -04:00
kr Migrate to go-git/go-git v5.0.0 (#10735) 2020-03-17 12:19:58 -04:00
lafriks/xormstore
lib/pq pq -> v1.7.0 (#11905) 2020-06-16 19:57:38 +08:00
lunny
magiconair/properties
mailru/easyjson
markbates/goth OAuth2: add Yandex provider (#8335) (#10564) 2020-03-05 00:08:52 +02:00
mattn Server-side syntax highlighting for all code (#12047) 2020-07-01 00:34:03 +03:00
matttproud/golang_protobuf_extensions
mcuadros/go-version
mgechev Rename scripts to build and add revive command as a new build tool command (#10942) 2020-04-03 22:29:12 +03:00
mholt/archiver/v3 Dump: add output format tar and output to stdout (#10376) 2020-06-05 16:47:39 -04:00
microcosm-cc/bluemonday upgrade to most recent bluemonday (#11007) 2020-04-07 23:08:47 +03:00
mitchellh
mrjones/oauth
mschoch/smat [Vendor] blevesearch v0.8.1 -> v1.0.7 (#11360) 2020-05-10 06:40:54 +01:00
msteinert/pam
nfnt/resize
niklasfasching/go-org
nwaples/rardecode Dump: add output format tar and output to stdout (#10376) 2020-06-05 16:47:39 -04:00
olekukonko/tablewriter Rename scripts to build and add revive command as a new build tool command (#10942) 2020-04-03 22:29:12 +03:00
oliamb/cutter
olivere/elastic/v7
pelletier/go-toml
philhofer/fwd
pierrec/lz4 Dump: add output format tar and output to stdout (#10376) 2020-06-05 16:47:39 -04:00
pkg/errors Rename scripts to build and add revive command as a new build tool command (#10942) 2020-04-03 22:29:12 +03:00
pmezard/go-difflib
pquerna/otp Update github.com/pquerna/otp from untagged to v1.2.0 (#11358) 2020-05-10 15:50:16 +03:00
prometheus
PuerkitoBio
quasoft/websspi
RoaringBitmap/roaring [Vendor] blevesearch v0.8.1 -> v1.0.7 (#11360) 2020-05-10 06:40:54 +01:00
sergi/go-diff Migrate to go-git/go-git v5.0.0 (#10735) 2020-03-17 12:19:58 -04:00
shurcooL
siddontang/go-snappy
spf13 upgrade to use testfixtures v3 (#11904) 2020-06-17 22:07:58 +03:00
steveyen/gtreap [Vendor] blevesearch v0.8.1 -> v1.0.7 (#11360) 2020-05-10 06:40:54 +01:00
stretchr/testify
syndtr/goleveldb
tinylib/msgp [Vendor] blevesearch v0.8.1 -> v1.0.7 (#11360) 2020-05-10 06:40:54 +01:00
toqueteos/webbrowser Exclude generated files from language statistics (#11653) 2020-05-29 09:20:01 +03:00
tstranex/u2f
ulikunitz/xz Dump: add output format tar and output to stdout (#10376) 2020-06-05 16:47:39 -04:00
unknwon Dump: add output format tar and output to stdout (#10376) 2020-06-05 16:47:39 -04:00
urfave/cli
willf/bitset
xanzy Vendor Update: go-gitlab v0.22.1 -> v0.31.0 (#11136) 2020-04-19 21:23:05 +01:00
xi2/xz Dump: add output format tar and output to stdout (#10376) 2020-06-05 16:47:39 -04:00
yohcop/openid-go github.com/yohcop/openid-go update to first tagged version (#11357) 2020-05-10 09:53:04 +01:00
yuin Server-side syntax highlighting for all code (#12047) 2020-07-01 00:34:03 +03:00