EE Syntax

Developer

mithra62 - Eric Lamb

3rd Party (Free)

GNU General Public License v3

EE Version Support

  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Module

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 created October 4, 2011, 9:20 am.
This entry was last updated October 4, 2011, 5: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!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!