I just tried editing the page a few times. It seems that there is a minor problem with the sanitizer, so if there is already one codesample in the page, and you edit the page to add another, then the first pre tag is stripped because it already contains a style="prettyprint" attribute.
But if you do both preformatting steps in one edit, then you should be fine.
Only preformat once?
There seems to be some problems using the "preformatted" style more than once in a page.
Here http://our.umbraco.org/wiki/reference/umbracolibrary/getxmlnodebyid I have two XSLT examples, which both have been set to "preformatted". But when the page is saved only the first example is being displayed with the style.
I just tried editing the page a few times. It seems that there is a minor problem with the sanitizer, so if there is already one codesample in the page, and you edit the page to add another, then the first pre tag is stripped because it already contains a style="prettyprint" attribute.
But if you do both preformatting steps in one edit, then you should be fine.
However this need to be fixed.
Ok I will try to make all code examples on page creation then :)
Looking forward to the fix.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.