Comments (7)
I get it, you put an extra space at the end of the file, that's why it has trouble to detect the file extension to apply the syntax highlight.. If you trim your file name, it might work.
I will improve the file extension detection.
from opengist.
Can you show how you have created your bat file ? It's working perfectly fine to me https://opengist.thomice.li/thomas/d9953acf898d41fab9e15676979b4e3a
from opengist.
Oh, didn't occur to me that the casing might be the issue. My bat file is using the keywords in lower-case:
from opengist.
The syntax highlighting also works with lowercase letters, do you have errors in the console?
from opengist.
I don't know in which screen should I look for console errors, but in the main screen of the gist there is none.
By the way, my gist is open, so you can check it here: https://gist.bonadiman.dev/greenteafox/c800ea5b9a9047029e7750e9d0ca38ee
from opengist.
I think it's because you are using Cloudflare as a CDN, and using an option to "optimize" html. It happened to a friend of mine. Try to disable the settings in Cloudflare, in Speed > Optimization > Auto minify
It could resolves #16 too
from opengist.
Thanks for the support! I'd never figure that out myself. I end up creating a Configuration Rule that disables html minifying just for this hostname (under Rules > Configuration Rules). It fixed the indentation issue on #16, but the syntax highlighting issue still persists.
from opengist.
Related Issues (20)
- [Feature request] PWA HOT 1
- Spacing between Avatar and title missing on some Gists
- Own Logo over text on mobile
- [Feature request] Helm chart HOT 1
- Mermaid diagram causing syntax error
- [Feature request] Proxy Auth
- [Feature Request]: Disable registration HOT 2
- [Feature request]: Custom links in main address bar
- [BUG]: Markdown preview button missing when editing a gist HOT 3
- [FEAT]: Add markdown alerts (admonition) support HOT 7
- Option to hide revisions for public gists + group gists by folders
- Restrict login and registration to OIDC HOT 2
- Opengist Container Shutdown Randomly After update to version v1.7.2 HOT 3
- Rich Text Format HOT 1
- Wrong visibility interaction when RequireLogin = true HOT 2
- Copy to clipboard fails silently with macOS Safari when served remotely via http (not https) HOT 1
- It is recommended to add AI support HOT 2
- Demo HOT 2
- 可以指定用户有修改其他人代码的权限吗?或者允许用户自行创建用户组,可以互相修改代码,保留历史记录。 HOT 1
- Traefik Reverse Proxy & SSH HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opengist.