kpumuk / codecolorer

WordPress plugin which allows you to insert code snippets into the post with nice syntax highlighting.
https://kpumuk.info/projects/wordpress-plugins/codecolorer/
56 stars 14 forks source link

converting < to &lt; and > to &gt; (html entities) in apache lang. #22

Closed Abu3safeer closed 1 year ago

Abu3safeer commented 6 years ago

Hello everyone, I tried to use apache code inside my article in this way: [cc lang="apache"] <VirtualHost :80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot "F:/xampp/htdocs/dummy-host.example.com" ServerName dummy-host.example.com ServerAlias www.dummy-host.example.com ErrorLog "logs/dummy-host.example.com-error.log" CustomLog "logs/dummy-host.example.com-access.log" common [/cc] < and > signs converted to html entities inside code box, so the result is: <VirtualHost :80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot "F:/xampp/htdocs/dummy-host.example.com" ServerName dummy-host.example.com ServerAlias www.dummy-host.example.com ErrorLog "logs/dummy-host.example.com-error.log" CustomLog "logs/dummy-host.example.com-access.log" common </VirtualHost>

kpumuk commented 6 years ago

If you're using Visual Editor - try adding escaped="true"