EE 1
EE 2
EE Syntax
Developer
3rd Party (Free)
Compatibility
- LG Addon Updater
- Multi Site Manager
- Stand Alone Entry Form
Requirements
- jQuery for the Control Panel
Tags
EE-Syntax is a module to syntax highlight code for ExpressionEngine 2 that uses Geshi as the translation mechanism.
EE-Syntax is a server side parser that uses Geshi for the highlighting so it supports any language that Geshi supports over 190 different programming languages. The specific goal with EE-Syntax was to enable me to write about code and since ExpressionEngine didn’t have a server side syntax parser for ExpressionEngine 2 it just made sense to write a module.
EE-Syntax works by using template tags combined with HTML markup within an entry. For the template, you wrap the code you want to highlight like the below:
{exp:ee_syntax:add_head}
{exp:ee_syntax:filter}
{content_with_code}
{/exp:ee_syntax:filter}
Note that the {exp:ee_syntax:add_head} tag is used to include a default CSS style sheet. If you have your own CSS file you’ll be using you can omit that tag.
Then, within your entries, you’ll want to ensure the formatting is set to None and mark up your code like the below:
<pre lang="php" line="1">
if($foo)
{
}
elseif($bar)
{
}
</pre>
EE Syntax Links
This entry was last updated October 4, 2011, 4:54 am.
Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!
There are no reviews for this add-on yet.
What are you waiting for? Rate it and review it!