HTML syntax highligter [closed] - html

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I want to ask you for help. I need some "simply-use" HTML syntax highlighter.
I have tryed http://alexgorbatchev.com/SyntaxHighlighter/ but this one doesnt support HTML5 tags and it has sliders on right side of screen no matter how big(small) content really is.
Thank you for any response.

prism.js
There are many scripts for this, but I find Lea Verou`s prismjs library to be the easiest to use. And of course it supports HTML5!
To use it, just wrap your code in pre and code tags, and give them a class of language-markup:
<pre class="language-markup"><code>
<div class="example">This is automatially highlighted</div>
</code></pre>
Here's what it'll look like:
and here' a live example: http://plnkr.co/edit/7Du1Oro4px3wsGv0BPOT?p=preview

Related

Css and/or html difficulty [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I just installed a plug-in on my webshop and the css got somehow weird..
If you look on: solved
The breadcrumb is not full width just like at: solved
What am i missing in my code or css?
Thanks
<div id='content'> has its padding-left and padding-right set to 40px.
You should move <div class="breadcrumb"> out of content, so that it is a child of <div id="container">.
But first, you should install firebug and learn to solve these problems yourself. It is very simple.
You've put the div with class breadcrumbs inside the div with class content. It should go outside.
You should have compared both generated htmls and see the differences (in relevant places). That's a good step in finding it out yourself.

Image getting cut off in IE [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
Please checkout my website in Internet Explorer:
http://www.ziftit.com/index2.html
I can't figure out why the gift box image is getting cut off in the top of the image.
Update: I added the doctype to the top of the page and then got rid of all the comments and now it displays perfectly!
As a first step, add a correct Doctype to your document.
Then validate that the HTML and CSS are valid.

TinyMCE Content_css isn't working [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I am using TinyMCE with MVC 3 razor engine. I am trying to add my own classes I used content_css and added my style sheet. the classes appeared normally in the drop-down list but when i click them they don't affect the view or html. where should I look or inspect I'm using version 3.4.7
the problem was with the tinymce version
It can be a bug wiht tinymce. You can grab the lastest version and try.
Also consider migrating to ckeditor. Its a great editor and have support for a bunch of plugins. It's also highly customizable and esasy to implement and setup.

Break in new line CSS [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
I'm doing a Facebook-Like chat. The problem is that the text is making a horizontal scroll and I dont want to. The original site is http://live-pin.com/ and there you can see the code. Please help me ;)
EDIT: You don't need to signup, you just click on System_MSG bar under the bottom right corner. Thanks for helping
That's because you use non-breakable spaces (&nbsp). Use normal spaces instead and the text will display correctly:
Change this:
Hi visitor. We suggest you to sign in
to this
Hi visitor. We suggest you to sign in

Strange bug in +IE8 [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
Please take a look at this page via IE 8 or 9: http://sneakyrascal.com/starpons/about.html
As seen there are two footers but in fact I only added one footer. I figured it's connected with <a> tag. when I remove it, it will work fine.
Thanks in advance for any help
You open a new a instead of closing it:
<a href="images/Ruby_BIS_0011.jpg" class="iframe" ><img src="images/Ruby_BIS_0011-300x234.jpg" /><a>
You should have found this when using a the validator.