{"id":55424,"date":"2011-02-25T12:51:26","date_gmt":"2011-02-25T12:51:26","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/my-syntax\/"},"modified":"2011-04-10T17:12:15","modified_gmt":"2011-04-10T17:12:15","slug":"my-syntax","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/my-syntax\/","author":7279315,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1","stable_tag":"trunk","tested":"3.1.4","requires":"3.0.5","requires_php":"","requires_plugins":"","header_name":"My Syntax","header_author":"giObanii","header_description":"","assets_banners_color":"","last_updated":"2011-04-10 17:12:15","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/toxigeek.com\/plugin-my-syntax","header_author_uri":"http:\/\/toxigeek.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3546,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","screenshots","other_notes"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-55424","plugin","type-plugin","status-closed","hentry"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/my-syntax.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>My Syntax provides clean syntax highlighting using\n<a href=\"http:\/\/qbnz.com\/highlighter\/\">GeSHi<\/a> - supporting a wide range of popular\nlanguages.  It supports highlighting with or\nwithout line numbers and maintains formatting while copying snippets of code\nfrom the browser.<\/p>\n\n<p>It avoids conflicts with other 3rd party plugins by running an early\npre-filter and a late post-filter that substitutes and pulls the code snippets\nout first and then pushes them back in with highlighting at the end.  The\nresult is source code formatted and highlighted the way you intended.<\/p>\n\n<p>Usage, Supported Languages, Styling Guidelines, and Release Notes are availabe\nin the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/my-syntax\/other_notes\/\">Other\nNotes<\/a> section.<\/p>\n\n<p>Inspired in <a href=\"http:\/\/wordpress.org\/extend\/plugins\/wp-syntax\/\">Wp-Syntax<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload my-syntax.zip to your Wordpress plugins directory, usually <code>wp-content\/plugins\/<\/code> and unzip the file.  It will create a <code>wp-content\/plugins\/my-syntax\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Create a post\/page that contains a code snippet.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<h4>Why is the plugin generating unexpected output?<\/h4>\n\n<p>Try editing code snippets without the visual editor.  To turn off the visual\neditor for all your edits, uncheck the visual editor checkbox in your profile.\nDepending on what type of code you're trying to display, you might also need\nto disable WordPress' corrections of invalidly nested XMTML (under Options -&gt;\nWriting).<\/p>\n\n<h4>Why can I, as an admin, post code snippets, but my authors cannot?<\/h4>\n\n<p>By default, WordPress filters HTML for particular user roles, and this affects\nMy Syntax's input.  As a workaround, install the <a href=\"http:\/\/www.im-web-gefunden.de\/wordpress-plugins\/role-manager\/\">Role Manager<\/a>\nplugin, and check \"unfiltered HTML\" for the roles that would like to post code snippets.<\/p>\n\n<!--section=screenshots-->\n<ol class='screenshots'>\n\t<li>\n\t\t<img class='screenshot' src='screenshot-1.png' alt='my-syntax screenshot 1' \/>\n\t\t<p>Example Code.<\/p>\n\t<\/li>\n\t<li>\n\t\t<img class='screenshot' src='screenshot-2.png' alt='my-syntax screenshot 2' \/>\n\t\t<p>Button.<\/p>\n\t<\/li>\n\t<li>\n\t\t<img class='screenshot' src='screenshot-3.png' alt='my-syntax screenshot 3' \/>\n\t\t<p>Quicktag button.<\/p>\n\t<\/li>\n<\/ol>\n\n<!--section=other_notes-->\n<h3 id='Supported-Languages'>Supported Languages<\/h3>\n<p>The following languages are supported in the <code>lang<\/code> attribute:<\/p>\n\n<p>abap, actionscript, actionscript3, ada, apache, applescript, apt_sources, asm,\n<strong>asp<\/strong>, autoit, avisynth, <strong>bash<\/strong>, bf, bibtex, blitzbasic, bnf, boo, <strong>c<\/strong>,\nc_mac, caddcl, cadlisp, cil, cfdg, cfm, cmake, cobol, cpp-qt, <strong>cpp<\/strong>,\n<strong>csharp<\/strong>, <strong>css<\/strong>, d, dcs, delphi, diff, div, dos, dot, eiffel, email, erlang,\nfo, fortran, freebasic, genero, gettext, glsl, gml, bnuplot, groovy, haskell,\nhq9plus, <strong>html4strict<\/strong>, idl, ini, inno, intercal, io, <strong>java<\/strong>, <strong>java5<\/strong>,\n<strong>javascript<\/strong>, kixtart, klonec, klonecpp, latex, <strong>lisp<\/strong>, locobasic, lolcode\nlotusformulas, lotusscript, lscript, lsl2, lua, m68k, make, matlab, mirc,\nmodula3, mpasm, mxml, <strong>mysql<\/strong>, nsis, oberon2, <strong>objc<\/strong>, ocaml-brief, ocaml,\noobas, <strong>oracle11<\/strong>, oracle8, pascal, per, pic16, pixelbender, <strong>perl<\/strong>,\nphp-brief, <strong>php<\/strong>, plsql, povray, powershell, progress, prolog, properties,\nprovidex, <strong>python<\/strong>, qbasic, <strong>rails<\/strong>, rebol, reg, robots, <strong>ruby<\/strong>, sas,\nscala, scheme, scilab, sdlbasic, smalltalk, smarty, <strong>sql<\/strong>, tcl, teraterm,\ntext, thinbasic, tsql, typoscript, <strong>vb<\/strong>, <strong>vbnet<\/strong>, verilog, vhdl, vim,\nvisualfoxpro, visualprolog, whitespace, whois, winbatch, <strong>xml<\/strong>, xorg_conf,\nxpp, z80<\/p>\n\n<p>(Bold languages just highlight the more popular ones.)<\/p>\n<h3 id='Styling-Guidelines'>Styling Guidelines<\/h3>\n<p>My Syntax colors code using the default GeSHi colors.  It also uses inline\nstyling to make sure that code highlights still work in RSS feeds.  It uses a\ndefault <code>my-syntax.css<\/code> stylesheet for basic layout.  To customize your styling,\ncopy the default <code>wp-content\/plugins\/my-syntax\/css\/my-syntax.css<\/code> to your theme's\ntemplate directory and modify it.  If a file named <code>my-syntax.css<\/code> exists in\nyour theme's template directory, this stylesheet is used instead of the default.\nThis allows theme authors to add their own customizations as they see fit.<\/p>","raw_excerpt":"My Syntax provides clean syntax highlighting for embedding source code within pages or posts.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/55424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=55424"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/giobanii"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=55424"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=55424"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=55424"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=55424"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=55424"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=55424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}