So after years of doing work on back end technologies such as PHP and C#, I find myself in the position of working on the front end again. I'm trying to build up my knowledge of bootstrap, and am making my own local reference page. I'm trying to use the widgets produced to display the code so I can refer to them easily.
I've been doing things like the following in regards to show me elements of JQuery that bootstrap references, and it works perfectly.
<p>Echo the JQuery
<code>
$(document).ready(function(){$('[data-toggle="tooltip"]').tooltip();});
</code> at the bottom (or somewhere) to enable this.
</p>
However, when I try to apply the following concepts to HTML itself, it tries to apply markup.
<p>
This uses
<code><div class=container></div></code>
in the outer div, and
<code><div class=page-header></div></code>
in the nested title.
</p>
This produces:
This uses in the outer div, and
in the nested title.
Am I doing something really obviously wrong here? Or do I need to escape it with some other element? Here's a JSFiddle: https://jsfiddle.net/o4vereqk/4/
` aren't to be rendered. What you need to do is write it as `
– gen_Eric Aug 25 '15 at 20:25<div></div>
`. It may look messy, but you need to use `<` and `>` instead of `<` and `>`. Example: https://jsfiddle.net/o4vereqk/6/