New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax highlighting is done on plain text LICENSE files #2181
Comments
gogs mis-treat it as something like shell script? |
yes |
Fixed in |
Any special reason to fix incorrect highlighting only on Some examples below. LICENSE - Not an actual LICENSE file, just renamed that way so no highlighting occurs |
@unknwon Should I create a new issue? |
https://github.com/gogits/gogs/blob/master/modules/template/highlight/highlight.go#L16 |
@unknwon I see. But what about any file with a Does |
@MEGADR01D there is no perfect solution for highlighting, but I think in your case add following content to your
|
@unknwon Since I'm using a 3rd party hosted Gogs, let me get back to you, on this, before I close this and the other issue I created. I thought it was a bug within Gogs but I see it's normal behavior of highlightjs. |
For example, this file when migrated into Gogs is highlighted:
https://github.com/yurivict/node-line-tracer/blob/master/LICENSE
The text was updated successfully, but these errors were encountered: