Skip to content

I want to customize syntax coloring of code rendered in views of my repository #22067

Discussion options

You must be logged in to vote

Hi @llaenowyd! 👋 Welcome to the Community!

That would be a neat feature, yes! Syntax highlighting is not actually set by GitHub itself, though.

We use open source TextMate-style language grammars for syntax highlighting, which are available here:

github.com

github/linguist/blob/96ad1185828f44bb9b774328a584551ee57ed264/grammars.yml

https://bitbucket.org/Clams/sublimesystemverilog/get/default.tar.gz:
- source.systemverilog
- source.ucfconstraints
https://svn.edgewall.org/repos/genshi/contrib/textmate/Genshi.tmbundle/Syntaxes/Markup%20Template%20%28XML%29.tmLanguage:
- text.xml.genshi
vendor/grammars/Alloy.tmbundle:
- source.alloy
vendor/grammars/Assembly-Syntax-Definition:
- source.x86
vend…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants