{"id":1998,"date":"2007-09-07T13:17:25","date_gmt":"2007-09-07T13:17:25","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/code-highlighter\/"},"modified":"2012-06-18T18:12:17","modified_gmt":"2012-06-18T18:12:17","slug":"code-highlighter","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/code-highlighter\/","author":79542,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.9","stable_tag":"1.9","tested":"3.4.2","requires":"2.0","requires_php":"","requires_plugins":"","header_name":"CodeHighlighter","header_author":"Ben Lobaugh","header_description":"","assets_banners_color":"","last_updated":"2012-06-18 18:12:17","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/code-highlighter\/","header_author_uri":"http:\/\/ben.lobaugh.net","rating":0,"author_block_rating":0,"active_installs":10,"downloads":12339,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.7","1.8","1.9"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[4443,1975,86,18593],"plugin_category":[46],"plugin_contributors":[77507,86550],"plugin_business_model":[],"class_list":["post-1998","plugin","type-plugin","status-publish","hentry","plugin_tags-code-highlighter","plugin_tags-formatting","plugin_tags-post","plugin_tags-syntax-highlight","plugin_category-editor-and-writing","plugin_contributors-blobaugh","plugin_contributors-iwongu","plugin_committers-blobaugh","plugin_committers-iwongu","plugin_committers-nikv"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/code-highlighter.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin is a syntax highlighter for source code. It uses <em>GeSHi<\/em> as fontifier engine.<\/p>\n\n<h4>Usage<\/h4>\n\n<ol>\n<li>Put the code snippet in a ``` tag.<\/li>\n<li>Add the lang attribute to the code tag like the following. <code>&lt;code lang=\"php\"&gt;<\/code> <\/li>\n<li>Add the lineno attribute to the <code>&lt;code&gt;<\/code> tag after the lang tag if you wish to start at a line other than 1. <code>&lt;code lang=\"cpp\" lineno=\"42\"&gt;<\/code><\/li>\n<li>If you do not add lang attribute, the <code>&lt;code&gt;<\/code> tag is handled normally.<\/li>\n<li>If you want to have border, add the style like the following to your .css file. <code>code { border: 1px dotted #ccc; padding: 0.2em 0.5em; }<\/code><\/li>\n<li>You can use following languages in lang. <code>abap, actionscript, ada, apache, applescript, asm, asp, autoit, bash, blitzbasic, bnf, c, c_mac, caddcl, cadlisp, cfdg, cfm, cpp-qt, cpp, csharp, css-gen, css, d, delphi, diff, div, dos, dot, eiffel, fortran, freebasic, genero, gml, groovy, haskell, html4strict, idl, ini, inno, io, java, java5, javascript, latex, lisp, lua, m68k, matlab, mirc, mpasm, mysql, nsis, objc, ocaml-brief, ocaml, oobas, oracle8, pascal, per, perl, php-brief, php, plsql, python, qbasic, rails, reg, robots, ruby, sas, scheme, sdlbasic, smalltalk, smarty, sql, tcl, text, thinbasic, tsql, vb, vbnet, vhdl, visualfoxpro, winbatch, xml, xpp, z80<\/code> <\/li>\n<\/ol>\n\n<p><strong>Note:<\/strong> Version 1.9 adds support for <code>&lt;code&gt;<\/code> tags, however to ensure backwards compatibility support for the <code>&lt;pre&gt;<\/code> tag will not be removed.<\/p>\n\n<h3>Known issues<\/h3>\n\n<ol>\n<li>Because this plugin uses regular expression to match string range from <code>&lt;code lang=\"some\"&gt;<\/code> to ```, you can't use <code>&lt;\/code&gt;<\/code> in your code snippet. If you must put the <code>&lt;\/code&gt;<\/code> tag, you can put a space between <code>&lt;<\/code> and <code>\/code&gt;<\/code> like <code>&lt; \/code&gt;<\/code>. The <code>&lt; \/code&gt;<\/code> is converted to <code>&lt;\/code&gt;<\/code> automatically by plugin.<\/li>\n<li>If you want to change the style, you should modify the plugin source file. :-P<\/li>\n<\/ol>\n\n<!--section=installation-->\n<ol>\n<li>Unzip the plugin archive.<\/li>\n<li>Upload the directory to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.9<\/h4>\n\n<ul>\n<li>Added plugin maintainer<\/li>\n<li>Removed outdated links<\/li>\n<li>Added support for the <code>&lt;code&gt;<\/code> tag<\/li>\n<li>Fixed several HTML entity display issues<\/li>\n<li>Line numbering now defaults to displaying line numbers starting at 1<\/li>\n<\/ul>","raw_excerpt":"This plugin is a syntax highlighter for source code using GeSHi.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/1998","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=1998"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/iwongu"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=1998"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=1998"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=1998"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=1998"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=1998"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=1998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}