Comments (8)
@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.
Super, thanks!
from jasper.
@biomadeira Can I using highlight.js
in theme as below
from jasper.
@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.
@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.
@hungdh0x5e Sounds cool! I can add that later tonight. I will get back to you!
from jasper.
Yeah, wait you :D
from jasper.
@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)
- jekyll serve error HOT 2
- Do links in the navigation bar get automatically generated? HOT 1
- Travis build fails with The command "bundle exec rake site:deploy --quiet" exited with 1 HOT 3
- Plug-ins to Liquid? HOT 2
- Full Width Content HOT 1
- Secure link error in _include/disqus.html
- Your theme is listed in jekyllthemes.ru
- Broken Permalinks HOT 1
- Site build on master pages HOT 1
- Problem on Build page 2 HOT 2
- Modifications for user pages HOT 3
- Any idea on how to put a search field? HOT 2
- How to set text around img HOT 2
- Invalid Theme Folder and Missing Jasper-api
- Facebook/twitter links don't contain the site URL
- Layout inheritance doesn't work correcty HOT 1
- _config.yml spelling error? HOT 1
- getting-started pages getting 404 error in header page
- Deployment problems
- Adding LinkedIcon icon to 'Share this Post'
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 jasper.