particleShape1.incandescencePP=<<rand(0.8.1),rand(0,0.5),rand(0,0.5);  #rands are r,g,b, 1=100%.

I wanted the above line to read as is in a html document. Right now without any tags part of it disappears completely. Any ideas how I can get this to stay visible with the formatting I have on the document? Thanks!

有帮助吗?

解决方案

You need to use pre tags:

<pre> particleShape1.incandescencePP=<<rand(0.8.1),rand(0,0.5),rand(0,0.5); #rands are r,g,b, 1=100%. </pre>

...replacing any < with &lt; because they are still parsed with pre tags:

<pre> particleShape1.incandescencePP=&lt;&lt;rand(0.8.1),rand(0,0.5),rand(0,0.5); #rands are r,g,b, 1=100%. </pre>

http://jsfiddle.net/JDQRG/

其他提示

Ever heard of pre tag. docs

It is used to show code inside html document.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top