Title: Process HTML code before syntax highlighting?
Last modified: September 18, 2020

---

# Process HTML code before syntax highlighting?

 *  [talgalili](https://wordpress.org/support/users/talgalili/)
 * (@talgalili)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/process-html-code-before-syntax-highlighting/)
 * I have an (unpleasant) situation in which I have code blocks in one language (
   R) but they include HTML tags for formatting.
    For example:
 *     ```
       <pre>
       print(paste("The year is", 2010))<em>
       "The year is 2010"</em>
       </pre>
       ```
   
 * When activating the plugin it shows the text as is.
    But what I want it to show
   is:
 *     ```
       <pre>
       print(paste("The year is", 2010))
       "The year is 2010"
       </pre>
       ```
   
 * Could you please add this ability to the plugin?!
    -  This topic was modified 5 years, 8 months ago by [talgalili](https://wordpress.org/support/users/talgalili/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * (@andi-dittrich)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/process-html-code-before-syntax-highlighting/#post-13423114)
 * Hi [@talgalili](https://wordpress.org/support/users/talgalili/)
 * that’s the intended behaviour and it’s technically not possible to use html markup
   within a codeblock. sorry!
 * for such use cases, the line highlighting is mostly suitable or a derived language

Viewing 1 replies (of 1 total)

The topic ‘Process HTML code before syntax highlighting?’ is closed to new replies.

 * ![](https://ps.w.org/enlighter/assets/icon-256x256.png?rev=1215872)
 * [Enlighter - Customizable Syntax Highlighter](https://wordpress.org/plugins/enlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/enlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enlighter/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/process-html-code-before-syntax-highlighting/#post-13423114)
 * Status: not resolved