Giter VIP home page Giter VIP logo

Comments (7)

thomiceli avatar thomiceli commented on June 7, 2024 1

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.

thomiceli avatar thomiceli commented on June 7, 2024

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.

jbonadiman avatar jbonadiman commented on June 7, 2024

Oh, didn't occur to me that the casing might be the issue. My bat file is using the keywords in lower-case:

image

from opengist.

thomiceli avatar thomiceli commented on June 7, 2024

The syntax highlighting also works with lowercase letters, do you have errors in the console?

from opengist.

jbonadiman avatar jbonadiman commented on June 7, 2024

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.

thomiceli avatar thomiceli commented on June 7, 2024

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

cloudflare

It could resolves #16 too

from opengist.

jbonadiman avatar jbonadiman commented on June 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.