When used with <pre>
tag still it is not displaying <iostream.h>
, <conio.h>
and other keywords that contain <>
angle brackets like "cout<<
".
I only want to know how to display my coding on webpage. (no compilation, no syntax highlighting)
You need to replace <
and >
with their HTML character entity equivalents: <
and >
.
For example:
<pre>
<iostream.h>
<conio.h>
cout<<
</pre>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With