Title: Using Crayon from .php file
Last modified: August 22, 2016

---

# Using Crayon from .php file

 *  Resolved [FeniXenAaaa](https://wordpress.org/support/users/fenixenaaaa/)
 * (@fenixenaaaa)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/using-crayon-from-php-file/)
 * How can I use Crayon from .php file so it will format the code I pass to it?
   
   I’m try to do the following (in my function.php): `echo '<pre class="nums:false
   lang:reg decode:true">curl -X POST -H "X-Database-Id: 236276243hlbf36"</pre>';`
   But there is no any formatting appears on the page. What should I try? Screenshot
   with no formatting: [http://oi62.tinypic.com/2a9a887.jpg](http://oi62.tinypic.com/2a9a887.jpg)
 * [https://wordpress.org/plugins/crayon-syntax-highlighter/](https://wordpress.org/plugins/crayon-syntax-highlighter/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [akarmenia](https://wordpress.org/support/users/akarmenia/)
 * (@akarmenia)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/using-crayon-from-php-file/#post-5571809)
 * [http://aramk.com/blog/2012/05/03/using-crayon-manually-in-php/](http://aramk.com/blog/2012/05/03/using-crayon-manually-in-php/)

Viewing 1 replies (of 1 total)

The topic ‘Using Crayon from .php file’ 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
 * 2 participants
 * Last reply from: [akarmenia](https://wordpress.org/support/users/akarmenia/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/using-crayon-from-php-file/#post-5571809)
 * Status: resolved