{"id":7036,"date":"2009-10-22T17:46:45","date_gmt":"2009-10-22T17:46:45","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/syntax-highlighter-mt\/"},"modified":"2015-08-18T15:11:20","modified_gmt":"2015-08-18T15:11:20","slug":"syntax-highlighter-mt","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/syntax-highlighter-mt\/","author":5101622,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.2.5","stable_tag":"2.2.5","tested":"4.3.0","requires":"2.7.1","requires_php":"","requires_plugins":"","header_name":"Syntax Highlighter MT","header_author":"Chad Johnston","header_description":"","assets_banners_color":"","last_updated":"2015-08-18 15:11:20","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.megatome.com\/syntaxhighlighter\/","header_plugin_uri":"http:\/\/www.megatome.com\/syntaxhighlighter","header_author_uri":"http:\/\/www.megatome.com","rating":0,"author_block_rating":0,"active_installs":100,"downloads":24570,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>This version has been tested with recent WordPress versions, and uses the most recent Syntax Highlighter version. Users\nshould upgrade if these features are desired.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.0","2.0.1","2.1","2.2","2.2.1","2.2.2","2.2.3","2.2.4","2.2.5"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1567199","resolution":"2","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1567199","resolution":"3","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1567199","resolution":"1","location":"plugin"}},"screenshots":{"1":"Styled Groovy code.","2":"Styled Groovy code using the Django theme.","3":"Styled Groovy code using the FadeToGrey theme."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1214,5701,3986,2207],"plugin_category":[],"plugin_contributors":[83791],"plugin_business_model":[],"class_list":["post-7036","plugin","type-plugin","status-publish","hentry","plugin_tags-code","plugin_tags-code-highlight","plugin_tags-highlight","plugin_tags-syntax","plugin_contributors-iamthechad","plugin_committers-iamthechad"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/syntax-highlighter-mt.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/syntax-highlighter-mt\/trunk\/screenshot-1.png?rev=1567199","caption":"Styled Groovy code."},{"src":"https:\/\/ps.w.org\/syntax-highlighter-mt\/trunk\/screenshot-2.png?rev=1567199","caption":"Styled Groovy code using the Django theme."},{"src":"https:\/\/ps.w.org\/syntax-highlighter-mt\/trunk\/screenshot-3.png?rev=1567199","caption":"Styled Groovy code using the FadeToGrey theme."}],"raw_content":"<!--section=description-->\n<p>This plugin works like many of the others that enable the use of the Syntax Highlighter tool. Dynamic plugin loading\nis now available as part of the Syntax Highlighter tool, making brush configuration obsolete.<\/p>\n\n<p>Available brushes are:\n    applescript\n    actionscript3 as3\n    bash shell\n    coldfusion cf\n    cpp c\n    c# c-sharp csharp\n    css\n    delphi pascal\n    diff patch pas\n    erl erlang\n    groovy\n    hive\n    java\n    jfx javafx\n    js jscript javascript\n    objc obj-c\n    perl pl\n    php\n    pig\n    text plain\n    py python\n    ruby rails ror rb\n    sass scss\n    scala\n    sql\n    vb vbnet\n    xml xhtml xslt html<\/p>\n\n<h3>Changing display themes<\/h3>\n\n<p>The display theme can be changed by navigating to <code>Settings<\/code> -&gt; <code>Syntax Highlighter MT<\/code>. The themes available are:<\/p>\n\n<ul>\n<li>Default<\/li>\n<li>Django<\/li>\n<li>Eclipse<\/li>\n<li>Emacs<\/li>\n<li>FadeToGrey<\/li>\n<li>MDUltra<\/li>\n<li>Midnight<\/li>\n<li>RDark<\/li>\n<\/ul>\n\n<h3>Advanced Usage<\/h3>\n\n<h4>Changing the appearance of code<\/h4>\n\n<p>There are many options that can be applied inline to control how your formatted code is displayed. These are appended to the class definition after the brush declaration.<\/p>\n\n<h4>auto-links<\/h4>\n\n<p><em>Enabled<\/em> by default. Disabling this turns off link detection in the highlighted section, making URLs non-clickable.<\/p>\n\n<pre><code>&lt;pre class=\"brush: java; auto-links: false\"&gt;\nString link = \"http:\/\/www.megatome.com\";\n&lt;\/pre&gt;\n<\/code><\/pre>\n\n<h4>class-name<\/h4>\n\n<p>Use this to specify one or more classes that should be applied to the generated highlight element.<\/p>\n\n<h4>collapse<\/h4>\n\n<p><em>False<\/em> by default. Forces the highlighted code to be collapsed by default.<\/p>\n\n<h4>first-line<\/h4>\n\n<p>1 by default. Change the starting line number for a section of highlighted code.<\/p>\n\n<pre><code>&lt;pre class=\"brush: java; first-line: 20\"&gt;\nString link = \"http:\/\/www.megatome.com\";\n&lt;\/pre&gt;\n<\/code><\/pre>\n\n<h4>gutter<\/h4>\n\n<p><em>Enabled<\/em> by default. Turn the line numbers on and off.<\/p>\n\n<pre><code>&lt;pre class=\"brush: java; gutter: false\"&gt;\nString link = \"http:\/\/www.megatome.com\";\n&lt;\/pre&gt;\n<\/code><\/pre>\n\n<h4>highlight<\/h4>\n\n<p>Specify one or more lines to be highlighted.<\/p>\n\n<pre><code>&lt;pre class=\"brush: java; highlight: [1, 3]\"&gt;\nString link = \"http:\/\/www.megatome.com\";\nSystem.out.println(\"Hello World\");\nSystem.out.println(\"Goodbye World\");\n&lt;\/pre&gt;\n<\/code><\/pre>\n\n<h4>toolbar<\/h4>\n\n<p><em>Enabled<\/em> by default. Toggle the toolbar.<\/p>\n\n<pre><code>&lt;pre class=\"brush: java; toolbar: false\"&gt;\nString link = \"http:\/\/www.megatome.com\";\n&lt;\/pre&gt;\n<\/code><\/pre>\n\n<h4>title<\/h4>\n\n<p>Allows a title to be set for a block of code. This is not in the class, but in the <code>&lt;pre\/&gt;<\/code> or <code>&lt;script\/&gt;<\/code> tags.<\/p>\n\n<pre><code>&lt;pre class=\"brush: java\" title=\"Here is some Java\"&gt;\nString link = \"http:\/\/www.megatome.com\";\n&lt;\/pre&gt;\n<\/code><\/pre>\n\n<p>Take a look at <a href=\"http:\/\/alexgorbatchev.com\/wiki\/SyntaxHighlighter\">http:\/\/alexgorbatchev.com\/wiki\/SyntaxHighlighter<\/a> for the documentation on using the Syntax Highlighter tool.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unzip the <code>syntax-highlighter-mt<\/code> directory and upload it to <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Highlighting code<\/dt>\n<dd><p>The basic usage is: <code>&lt;pre class=\"brush:brush_name\"&gt;...code...&lt;\/pre&gt;<\/code> where <code>brush_name<\/code> is one of the available brushes.<\/p><\/dd>\n<dt>Why does my content containing \"&lt;\" and \"&gt;\" get messed up?<\/dt>\n<dd><p>This is an issue with using the <code>&lt;pre \/&gt;<\/code> tags. Replace the <code>&lt;<\/code> characters with their entity escape of <code>&amp;lt;<\/code> to get the desired result.\nSee http:\/\/alexgorbatchev.com\/SyntaxHighlighter\/manual\/installation.html for more discussion.\n(Note that this issue only happens if you are using the <code>&lt;pre \/&gt;<\/code> tags to surround the highlighted code.)<\/p><\/dd>\n<dt>I get an error saying \"Can't find brush for: xxx\"<\/dt>\n<dd><p>The most likely issue is that the specified brush is not available as part of the plugin install.<\/p><\/dd>\n<dt>Why \"Syntax Highlighter MT\"?<\/dt>\n<dd><p>There are several plugins already that are named Syntax Highlighter, or some variant. I added \"MT\" (for Megatome Technologies - my company) to the name to make it unique.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.2.5<\/h4>\n\n<ul>\n<li>Verified to work with Wordpress 4.1.<\/li>\n<\/ul>\n\n<h4>2.2.4<\/h4>\n\n<ul>\n<li>Verified to work with Wordpress 3.9.<\/li>\n<li>Updated docs to describe changing themes. (<a href=\"https:\/\/github.com\/iamthechad\/syntaxhighlightermt\/issues\/2\">GitHub Issue #2<\/a>)<\/li>\n<li>Properly serve assets over HTTPS as well as HTTP. (<a href=\"https:\/\/github.com\/iamthechad\/syntaxhighlightermt\/issues\/1\">GitHub Issue #1<\/a>)<\/li>\n<\/ul>\n\n<h4>2.2.3<\/h4>\n\n<ul>\n<li>Verified to work with Wordpress 3.8.<\/li>\n<li>Updated docs to include advanced usage.<\/li>\n<\/ul>\n\n<h4>2.2.2<\/h4>\n\n<ul>\n<li>Added brushes for Pig and Hive QL.<\/li>\n<\/ul>\n\n<h4>2.2.1<\/h4>\n\n<ul>\n<li>No functional changes. Just updating the compatible WP version numbers to be the most recent.<\/li>\n<\/ul>\n\n<h4>2.2<\/h4>\n\n<ul>\n<li>Added Objective C brush.<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>Added ability to select coloration theme. This is a global setting.<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>No functional changes. Just updating the compatible WP version numbers to be the most recent.<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Incorporate Syntax Highlighter 3.0.83<\/li>\n<li>Remove option page for enabled brushes since the Syntax Highlighter tool now uses dynamic loading<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial Version<\/li>\n<\/ul>","raw_excerpt":"This plugin works like many of the others that enable the use of the Syntax Highlighter tool. Dynamic plugin loading","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/7036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=7036"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/iamthechad"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=7036"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=7036"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=7036"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=7036"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=7036"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=7036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}