By libre fan on
Hello,
I see you have to escape HTML tags (replace tags with HTML entities) when you post code in code or in pre tags. I also see there's a module that enables you to post code directly within code tags.
Is there a way to post code within pre tags directly?
I used Drupal 4x and I don't remember having problems with code or pre tags, but I may never have posted HTML code.
Comments
I added the code module and I
I added the code module and I only use pre for command lines or stuff like this that is not code.
The code module has a div if you write code that's longer than a mere line and so you may not even need to use code tags within pre tags. The CSS for the code div can be changed quite easily since a CSS file is included in the module.