NicePage keeps modyfying my 'style' rendering it unusable

Peter Ritter
2 Posts
Peter Ritter posted this 14 April 2023
Ask a Question

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

Vote to pay developers attention to this features or issue.
1 Reply
Order By: Standard | Newest
Support Team
Support Team posted this 14 April 2023

Hi Peter,

Unfortunately, the built-in Nicepage validator indicates this class as invalid. But we added the request to support this format of classes to our wish list.

...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Peter, Unfortunately, the built-in Nicepage validator indicates this class as invalid. But we added the request to support this format of classes to our wish list. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments