I have been using Rouge and Kramdown to properly format syntax since I've been using Jekyll. I haven't looked in awhile, but recently noticed that the syntax highlighting doesn't appear to be working properly. I noticed that the change broke when GitHub pages started supporting Jekyll 3.9 (was 3.8.5 for the longest time) and the latest version of Rouge. Anyone else find a solution to this? It appears to be broken on many sites that use GitHub Pages and I cannot find a site where it's working.
Here is a URL that does not work: https://www.jasongaylord.com/blog/embed-javascript-in-custom-aspnet-server-controls
The URL in question that is supposed to show syntax highlighting not working, does in fact appear to have syntax highlighting working correctly.
Section of your site with syntax highlighting, highlighted by Chrome dev tools. Shows syntax highlighting CSS class provided by Rouge and data-lang attribute
Related
I tried a simple test in Github pages to be able to include Modelica language but the highlight does not work on github pages whereas it is working in github markdown rendering
Working here :
https://github.com/gautierbureau/gautierbureau.github.io/blob/master/index.md
Not working here :
https://gautierbureau.github.io/
I read some stuff abut backtick and tilde and used both but did not change anything... Then I also read some stuff about rouge syntax highlighter but it dit not work either (maybe my configuration was not good but I couln't find any simple solution...)
I'm writing some HTML utilizing vscode and down at the bottom right shows the support language that vscode is utilizing. I click on it and HTML is not listed among the supported languages. The only one is HTML Liquid.
The problem is that when I highlight code follow with the keystroke to comment the code out, is commenting with HTML liquid syntax like so...
{% comment %}Bootstrap{% endcomment %}. I went to vscode website under the languages section, HTML, and is nothing I can find to solve this problem.
Do I need to install any extension to add support for HTML?
By default, vscode works fine. There might be some issue with plugins.
I had to uninstall Python Extension Pack which had 6 extensions including Django. After uninstalling it works fine.
I have been using syntax highlighter for my blogs which are hosted on Blogger.com, but recently I noticed that the code which has been highlighted by syntax highlighter doesn't appear on blog's feed and on mobile version. I tried to search over internet but couldn't find any useful information. I am novice to blogger/javascript and couldn't figure out why I am not able to see the formatted code.
Any kind of information will be appreciated here.
After a bit of research I found prettyprint syntax highlighter, which is also being used on Google website e.g developer.android.com.
I liked this its really easy to use and light weight.
Steps to inetgrate is shown in prettify syntax highlighter blogs.
I'm trying to use Syntax Highlighter with my blog at http://a.shinynew.me. This is a tumblog.
I cannot seem to get it to work. I have followed his basic instructions for installation using the CDN hosted versions, but nothing happens on the page and nothing gets thrown in either firebug or chrome dev tools. All referenced resources are loaded.
I was hoping someone could clue me in to how to use Syntax Highlighter with Tumblr, and if not, what a suitable alternative might be.
I'm going to switch the answer on this to a better answer which is Gist from GitHub. Embeds perfectly with beautiful syntax highlighting and minimal markup.
https://gist.github.com/
Try this.
I'm using Textmate for web development and ran into the problem that the standard HTML syntax highlighting, but also the HTML (Rails) syntax highlighting does not work well with the new "unqoted" HTML 5 syntax.
Is there a way to make the HTML 5 syntax highlighting work again, even without quotes? Does anyone know a Textmate Bundle that reenables the correct syntax highlighting?
Thanks in advance!
Have you tried this?
https://github.com/drnic/html-tmbundle
There are many others on github as well.