573
edits
(Cleanup) |
(a note on CDATA blocks in XML) |
||
| Line 29: | Line 29: | ||
Advice for testing: the object has to be present at sim startup. If you place an object with the UFO the xml-code gets executed, but not the Nasal code. | Advice for testing: the object has to be present at sim startup. If you place an object with the UFO the xml-code gets executed, but not the Nasal code. | ||
To avoid problems with particular characters like < and >, consider [[XML#Data|using a CDATA block]]: | |||
<syntaxhighlight lang="xml"> | |||
<nasal> | |||
<load> | |||
<![CDATA[ | |||
# ... | |||
# your nasal code here | |||
# ... | |||
]]> | |||
</load> | |||
<nasal> | |||
</syntaxhighlight> | |||
[[Category:Nasal howto]] | [[Category:Nasal howto]] | ||
[[Category:Scenery enhancement]] | [[Category:Scenery enhancement]] | ||
edits