Problem with <pre> in HTML editor
-
When I use the HTML tab when editing a post, I create a pre tag like so:
<pre lang="cmake" line="1">add_executable( helloworld main.cpp )</pre>
However, when I switch back to the “Visual” tab, and then switch back again to “HTML”, it has stripped the “line” attribute from my pre element. Why is it doing this? I’m using the WP-Syntax plugin and it is important for WordPress to not strip my line attribute.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Problem with <pre> in HTML editor’ is closed to new replies.