Git Product home page Git Product logo

Comments (8)

biomadeira avatar biomadeira commented on July 21, 2024

@baurigae Thanks! Code highlighting was something I knew was not working properly... anyways just pushed a fix 4fed0b6

If you see this post the snipped below is now highlighted as expected ;)

{% highlight css %}
#container {
    float: left;
    margin: 0 -240px 0 0;
    width: 100%;
}
{% endhighlight %}

Cheers

from jasper.

baurigae avatar baurigae commented on July 21, 2024

Super, thanks!

from jasper.

hungdh0x5e avatar hungdh0x5e commented on July 21, 2024

@biomadeira Can I using highlight.js in theme as below

from jasper.

biomadeira avatar biomadeira commented on July 21, 2024

@hungdh0x5e I guess you can use https://highlightjs.org/. They seem to have great coverage of languages and very neat styles... in any case code highlighting works already fine with the highlight tag as below

{% highlight javascript %}
// some code
{% endhighlight %}

Would you want me to support highlight.js in jasper?

from jasper.

hungdh0x5e avatar hungdh0x5e commented on July 21, 2024

@biomadeira Yes, that is exactly what i want. With highlight tag of theme, i like display code in box with scroll than display full code, and more color :)

from jasper.

biomadeira avatar biomadeira commented on July 21, 2024

@hungdh0x5e Sounds cool! I can add that later tonight. I will get back to you!

from jasper.

hungdh0x5e avatar hungdh0x5e commented on July 21, 2024

Yeah, wait you :D

from jasper.

biomadeira avatar biomadeira commented on July 21, 2024

@hungdh0x5e Just added it here 4ec58d6

To change the style just edit the link in default.html from //cdnjs.cloudflare.com/ajax/libs/highlight.js/9.3.0/styles/default.min.css

to http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.3.0/styles/monokai.min.css

in the example of using monokai as the main style.

Should just work!

from jasper.

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.