The syntax highlighting for .html files does not work.
However, highlighting for .css files does work. Any ideas what should I do?
If anyone might find it important (though none of them affect HTML other than the indentation colors one, and I use the default Microsoft VSCode HTML syntax highlighting), this is the list of my extensions:
I solved the issue. I realised that once when I was meddling with something I added by accident a single character to the beginning of the file Microsoft VS Code\Resources\App\Extensions\html\syntaxes\html.tmLanguage.json which made VSCode unable to parse it. The highlighting works now.
Related
By configure I mean font size, font family, syntax highlight style, line numbers and so on. I have followed some tutorials but they don't worked for me.
What I did:
added markdown: kramdown and highlighter: rouge to _config.yml;
added a css theme from pygments directly in head / imported it in the main.scss file.
I tried this and the syntax highlight worked but in a limited way, cause I can't add the line numbers with lineos. I noticed that the {% highlight lang_name %} tag doesn't works, just the triple tildes.
Any help will be welcome
Pygments has been deprecated. For highlight tag, you may consider use rouge or maybe markdown code blocks with highlight.js.
I think the answer depends to some extent on the theme that you are using. If you want to change only a few small things, the best way is to use the Inspect Element feature that comes with your browser.
Start up your website using bundle exec Jekyll serve and navigate to a page with syntax highlighted code.
Right click on a code block and select "Inspect Element". Something should open up on the side or below. It will look like this:
Now play around with the color/font size as you see fit.
Then just copy the contents into the main.css file.
A tricky part may be finding the main.css or main.scss file for your theme. Try to grep for it the theme's directory (which you see using bundle show theme-name). For Minimal Mistakes, it is \assets\css\main.scss since this theme uses scss.
I'm working on a project(IntelliJ + Grav) which all base files are *.md, I have the need to just write HTML code in one of this MD files but I can find an option to change the syntax highlight or intellisense to trigger(emmet, tags, ...).
In VS Code you can change the language mode no matter which file extension you have open.
Q: Is there a way to make IntelliJ highlight HTML code in a MD file.
PS: Don't tell me to change the file extension or open the file in VS Code, as I'm currently doing it.
You can add the file name to the HTML file type list of files/extensions and IntelliJ IDEA will treat it as HTML file instead of Markdown file.
Just started with media wiki but i have a weird problem.
I want to copy a simple template "Template:Note" so i visit:
Mediawiki template link
the code of the template that it shows to my browser is:
{{#if: {{{1|}}}|<div class="block-note"><span class="block-contents">|
[[File:Bulbgraph.png|18px|Note|link=]]}} '''Note:''' {{#if: {{{1|}}}|{{{1}}}</span></div>}}
No i havent copied pasted wrong, this is what it shows. The syntax is wrong ..| is in the wrong places and general the syntax is not correct. Of course it doesnt work if i copy paste, i have to manually correct the syntax.
This happens if i try to export it from the special pages.
Why this is happening?
Install Extension:ParserFunctions.
Here's the link to my problem:
http://alexcoady.co.uk/crumbl/
Basically, I'm getting nothing; just the markup, which I'm sure is bang on. The CSS file and jQuery file aren't getting pulled in though.. I'm a fairly experienced programmer and this is really throwing me, I'm sure I must be missing something.
Firebug says there's a Syntax error with the DOCTYPE line, there isn't.
It's my .htaccess file - sorry, me being thick.
Thank you!
Check your .htaccess. Aren't there any redirection rule?
Your jquery-1.6.js file is actually an HTML page, and the error is referring to the doctype on that script.
I just installed HTML Tidy plugin for eclipse. I added the html.erb file type and now it will do its magic on my erb files. However it puts in the title tag and changes a lot of my characters to escape characters. How can I stop this from happening - or is there a ruby alternative which will go through my code, reindent, and stick in missing tags? I'm worried about a lot of my erb files since the built in formatter with Aptana is hard to use. I don't see any glaring errors when I view the page, but I'm sure there are some mismatched tags and stuff that I'd like to get rid of. Any recommendations?
I haven't tried it but found Rack::Tidy