Is there a configuration that allows the use of a wysiwyg editor, but still allows users to not escape html tags within a <code> block? It seems like even escaping the tags doesn't work, as it prints the entity? Any idea? Thanks!

Comments

smartinm’s picture

Component: Code » Documentation

Do not use the input filter. Prettify automatically detects code tags (pre, code) and perform syntax highlighting.

Just for information, the input filter is an optional feature. The main advantage of the input filter is that you can post code without having to worry about manually escaping < and > characters, but this module can perform syntax highlighting of source code snippets in <pre> or <code> without input filter. In addition, you can use custom jQuery selectors to select
elements containing the code to highlight.

smartinm’s picture

Status: Active » Fixed

I'll mark this issue as 'fixed' to clean up the issue queue. Please re-open it if you have further questions.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.