![Ask a Question Ask a Question](/Content/Images/Site/post-type-question.png)
I need to render 'source code' using a syntax Highlighter library. I have included the library files in the page header and that seems to work. Then I created an HTML element and added the following:
<script class="brush:cpp" type="syntaxhighlighter"> int i = 5; double d = 6.6; </script>
But NicePage deletes the 'class' attribute.
I have tried to add the class in CSS text box, but NicePage keeps modifying it so it doesnt work anymore. I need this class:
class="brush:cpp"
but nice page changes it into: brush cpp
and it doesn't work in that format. Is there a way to leave it as "brush:cpp" ?
Thanks!
I need to render 'source code' using a syntax Highlighter library. I have included the library files in the page header and that seems to work. Then I created an HTML element and added the following: <script class="brush:cpp" type="syntaxhighlighter"> int i = 5; double d = 6.6; </script> But NicePage deletes the 'class' attribute. I have tried to add the class in CSS text box, but NicePage keeps modifying it so it doesnt work anymore. I need this class: class="brush:cpp" but nice page changes it into: brush cpp and it doesn't work in that format. Is there a way to leave it as "brush:cpp" ? Thanks!Last edited 14 April 2023 by Peter Ritter