Title: PowerShell with an XML declaration
Last modified: August 22, 2016

---

# PowerShell with an XML declaration

 *  [theboywonder](https://wordpress.org/support/users/theboywonder/)
 * (@theboywonder)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/powershell-with-an-xml-declaration/)
 * Hi,
 * I have some PowerShell code whereby I “cast” a variable to an XML object using
   the syntax
    `[xml]$var = ....`
 * Under Crayon Syntax Highlighter this renders as `[xml][/xml]`
 * Is there anyway to prevent this from happening? I’ve yet to find a plugin that
   handles this properly.
 * Thank you 🙂
 * [https://wordpress.org/plugins/crayon-syntax-highlighter/](https://wordpress.org/plugins/crayon-syntax-highlighter/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [theboywonder](https://wordpress.org/support/users/theboywonder/)
 * (@theboywonder)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/powershell-with-an-xml-declaration/#post-5254820)
 * I’m guessing that’s a no…

Viewing 1 replies (of 1 total)

The topic ‘PowerShell with an XML declaration’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/crayon-syntax-highlighter_b0c4c0.
   svg)
 * [Crayon Syntax Highlighter](https://wordpress.org/plugins/crayon-syntax-highlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/crayon-syntax-highlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/crayon-syntax-highlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/crayon-syntax-highlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/crayon-syntax-highlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/crayon-syntax-highlighter/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [theboywonder](https://wordpress.org/support/users/theboywonder/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/powershell-with-an-xml-declaration/#post-5254820)
 * Status: not resolved