{"id":23178,"date":"2013-05-05T21:31:34","date_gmt":"2013-05-05T21:31:34","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wpygments\/"},"modified":"2014-03-27T03:28:06","modified_gmt":"2014-03-27T03:28:06","slug":"wpygments","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/wpygments\/","author":3576156,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.2","stable_tag":"1.1.4","tested":"3.7.41","requires":"3.3","requires_php":"","requires_plugins":"","header_name":"WPygments","header_author":"Marcelo Iv\u00e1n Tosco (Capy)","header_description":"","assets_banners_color":"","last_updated":"2014-03-27 03:28:06","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/capy\/WPygments","header_author_uri":"http:\/\/ecapy.com\/","rating":5,"author_block_rating":0,"active_installs":10,"downloads":2643,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["installation","faq","changelog","description"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"3"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.1.1","1.1.2","1.1.3","1.1.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"708403","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"708403","resolution":"2","location":"assets"}},"screenshots":{"1":"Example highlighted code","2":"Another example highlighted code"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[18593],"plugin_category":[],"plugin_contributors":[95498],"plugin_business_model":[],"class_list":["post-23178","plugin","type-plugin","status-publish","hentry","plugin_tags-syntax-highlight","plugin_contributors-capynet","plugin_committers-capynet"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wpygments.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/wpygments\/assets\/screenshot-1.png?rev=708403","caption":"Example highlighted code"},{"src":"https:\/\/ps.w.org\/wpygments\/assets\/screenshot-2.png?rev=708403","caption":"Another example highlighted code"}],"raw_content":"<!--section=installation-->\n<p>To use this plugin you need pygments in your server:<\/p>\n\n<pre><code>sudo apt-get install python-setuptools\neasy_install Pygments\n<\/code><\/pre>\n\n<p>That's all. Now you can download the plugin and install it in your Wordpress.<\/p>\n\n<ol>\n<li>Upload the plugin 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<p>Once you get installed the plugin the usage is straightforward. just enclose your code between tokens named with the corresponding lang:<\/p>\n\n<pre><code>[javascript]....[\/javascript]\n\n[php]....[\/php]\n<\/code><\/pre>\n\n<!--section=faq-->\n<dl>\n<dt>A question that someone might have<\/dt>\n<dd><p>An answer to that question.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Added clojure support.<\/li>\n<li>Fix: Line numbers not showing up.<\/li>\n<li>Updated readme.txt<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>readme.txt fix<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>readme.txt fix<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>readme.txt fix<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First stable release<\/li>\n<\/ul>\n\n<!--section=description-->\n<p>Server side syntax highlighter based on Pygments highlighter software.<\/p>\n\n<h3>Installation:<\/h3>\n\n<p>To use this plugin you need pygments in your server:<\/p>\n\n<pre><code>sudo apt-get install python-setuptools\neasy_install Pygments\n<\/code><\/pre>\n\n<p>That's all. Now you can download the plugin and install it in your Wordpress.<\/p>\n\n<h3>Usage<\/h3>\n\n<p>Once you get installed the plugin the usage is straightforward. just enclose your code between tokens named with the corresponding lang:<\/p>\n\n<pre><code>[javascript]....[\/javascript]\n[php]....[\/php]\n<\/code><\/pre>\n\n<p>See \"Languages and filetypes supported\" section to know available languages.<\/p>\n\n<h4>Parameters<\/h4>\n\n<p>Tokens support a few parameters (all optionals):<\/p>\n\n<pre><code>[php **style**=\"manni\" **linenumbers**=\"table\"]....[\/php]\n\nstyle=\"manni\" defines code styling. Currently are 22 available styles.&lt;br&gt;\n<\/code><\/pre>\n\n<p>Default styling is <code>default<\/code> wich is very nice, but maybe you like other styles. see \"Color styles\" section.<\/p>\n\n<p>If you set \"linenumbers\" to <code>inline<\/code> or <code>table<\/code>, the line numbers will be added as independent table column or as part of the line.<\/p>\n\n<h4>Examples<\/h4>\n\n<pre><code>`\n<\/code><\/pre>\n\n<p>[javascript]\n\/\/comment line\nvar foo = \"foo\";\nvar bar = function(){\n    var baz;\n}\n[\/javascript]\n    `<\/p>\n\n<p>Outputs highlighted js with <strong>default<\/strong> style, and <strong>no<\/strong> line numbers.<\/p>\n\n<pre><code>`\n<\/code><\/pre>\n\n<p>[javascript style=\"monokai\" linenumbers=\"inline\"]\n\/\/comment line\nvar foo = \"foo\";\nvar bar = function(){\n    var baz;\n}\n[\/javascript]\n    `\nOutputs highlighted js with <strong>monokai<\/strong> style with line numbers (as part of the line).<\/p>\n\n<pre><code>`\n<\/code><\/pre>\n\n<p>[javascript style=\"monokai\" linenumbers=\"table\"]\n\/\/comment line\nvar foo = \"foo\";\nvar bar = function(){\n    var baz;\n}\n[\/javascript]\n    `\nOutputs highlighted js with <strong>monokai<\/strong> style with line numbers (as new column).<\/p>\n\n<h3>Color styles<\/h3>\n\n<p>These are supported color styles:<\/p>\n\n<ul>\n<li><code>monokai<\/code><\/li>\n<li><code>manni<\/code><\/li>\n<li><code>rrt<\/code><\/li>\n<li><code>perldoc<\/code><\/li>\n<li><code>borland<\/code><\/li>\n<li><code>colorful<\/code><\/li>\n<li><code>default<\/code><\/li>\n<li><code>murphy<\/code><\/li>\n<li><code>vs<\/code><\/li>\n<li><code>trac<\/code><\/li>\n<li><code>tango<\/code><\/li>\n<li><code>fruity<\/code><\/li>\n<li><code>autumn<\/code><\/li>\n<li><code>bw<\/code><\/li>\n<li><code>emacs<\/code><\/li>\n<li><code>vim<\/code><\/li>\n<li><code>pastie<\/code><\/li>\n<li><code>friendly<\/code><\/li>\n<li><code>native<\/code><\/li>\n<\/ul>\n\n<h3>Languages and filetypes supported<\/h3>\n\n<p>Pygments not only highlights languages. also highlights filetypes like .conf <strong>Nginx<\/strong> configuration file, <strong>Apache<\/strong> (filenames .htaccess, apache.conf, apache2.conf), etc.<\/p>\n\n<p>NOTE: to use see \"Usage\" section<\/p>\n\nimportant sdsd;\n\nGeneral\n\n<ul>\n<li><code>apacheconf<\/code>: (.htaccess, apache.conf, apache2.conf)<\/li>\n<li><code>bash<\/code>, <code>sh<\/code>, <code>ksh<\/code>:\n(*.sh, *.ksh, *.bash, *.ebuild, *.eclass, .bashrc, bashrc)<\/li>\n<li><code>ini<\/code>, <code>cfg<\/code>: (*.ini, *.cfg)<\/li>\n<li><code>makefile<\/code>:\n(<em>.mak, Makefile, makefile, Makefile.<\/em>, GNUmakefile)<\/li>\n<li><code>nginx<\/code>:\nNginx configuration file <\/li>\n<li><code>yaml<\/code>:\n(*.yaml, *.yml)<\/li>\n<li><code>perl<\/code>:\nPerl (*.pl, *.pm)<\/li>\n<li><code>vb.net<\/code>:\nVB.net (*.vb, *.bas)<\/li>\n<li><code>console<\/code>:\nBash Session (*.sh-session)<\/li>\n<\/ul>\n\nJavascript\n\n<ul>\n<li><code>javascript<\/code>: Pure Javascript<\/li>\n<li><code>coffeescript<\/code>: Pure CoffeeScript<\/li>\n<li><code>json<\/code>: Pure JSON<\/li>\n<\/ul>\n\nPHP\n\n<ul>\n<li><code>cssphp<\/code>: PHP embedded in CSS<\/li>\n<li><code>htmlphp<\/code>: PHP embedded in HTML<\/li>\n<li><code>jsphp<\/code>: PHP embedded in JS<\/li>\n<li><code>php<\/code>: Pure PHP<\/li>\n<li><code>xmlphp<\/code>: PHP embedded in XML<\/li>\n<\/ul>\n\nRuby\n\n<ul>\n<li><code>ruby<\/code>, <code>duby<\/code>: Ruby (*.rb, *.rbw, *.rake, *.gemspec, *.rbx, *.duby)<\/li>\n<li><code>csserb<\/code>, <code>cssruby<\/code>: Ruby embedded in CSS<\/li>\n<li><code>xmlerb<\/code>, <code>xmlruby<\/code>: Ruby embedded in XML<\/li>\n<\/ul>\n\nCSS and CSS compilers\n\n<ul>\n<li><code>css<\/code>:\nCSS (*.css)<\/li>\n<li><code>sass<\/code>:\nSass (*.sass)<\/li>\n<li><code>scss<\/code>:\nSCSS (*.scss)<\/li>\n<\/ul>\n\nHTML and HTML template systems\n\n<ul>\n<li><code>html<\/code>:\nHTML (*.html, *.htm, *.xhtml, *.xslt)<\/li>\n<li><code>haml<\/code>:\nHaml (*.haml)<\/li>\n<li><code>jade<\/code>:\nJade (*.jade)<\/li>\n<\/ul>\n\nSQL\n\n<ul>\n<li><code>sql<\/code>:\nSQL (*.sql)<\/li>\n<li><code>sqlite3<\/code>:\nsqlite3con (*.sqlite3-console)<\/li>\n<li><code>mysql<\/code>:\nMySQL <\/li>\n<\/ul>\n\nPython, jinja &amp; Django\n\n<ul>\n<li><code>python<\/code>: Pure Python<\/li>\n<li><code>python3<\/code>: Pure Python 3 <\/li>\n<li><code>xmldjango<\/code>, <code>xmljinja<\/code>: Django\/Jinja embedded in XML<\/li>\n<li><code>cssdjango<\/code>, <code>cssjinja<\/code>: Django\/Jinja embedded in CSS<\/li>\n<li><code>django<\/code>, <code>jinja<\/code>: Pure Django\/Jinja <\/li>\n<li><code>htmldjango<\/code>, <code>htmljinja<\/code>: Django\/Jinja embedded in HTML<\/li>\n<li><code>jsdjango<\/code>, <code>jsjinja<\/code>: Django\/Jinja embedded in Javascript<\/li>\n<\/ul>\n\nJava &amp;&amp; family\n\n<ul>\n<li><code>java<\/code>:\nJava (*.java)<\/li>\n<li><code>clojure<\/code>:\nclojure (*.clj)<\/li>\n<li><code>groovy<\/code>:\nGroovy (*.groovy)<\/li>\n<li><code>jsp<\/code>:\nJava Server Page (*.jsp)<\/li>\n<\/ul>\n\nC, C++, Objetive-c, C Sharp\n\n<ul>\n<li><code>cobjdump<\/code>: c-objdump (*.c-objdump)<\/li>\n<li><code>c<\/code>: C (*.c, *.h, *.idc)<\/li>\n<li><code>cpp<\/code>: C++ (*.cpp, *.hpp, *.c++, *.h++, *.cc, *.hh, *.cxx, *.hxx)<\/li>\n<li><code>csharp<\/code>: C# (*.cs)<\/li>\n<li><code>objectivec<\/code>: (*.m)<\/li>\n<\/ul>\n\nXML\n\n<ul>\n<li><code>xml<\/code>: (*.xml, *.xsl, *.rss, *.xslt, *.xsd, *.wsdl)<\/li>\n<li><code>xslt<\/code>: (*.xsl, *.xslt)<\/li>\n<\/ul>","raw_excerpt":"Server side syntax highlighter based on Pygments highlighter software.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/23178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=23178"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/capynet"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=23178"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=23178"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=23178"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=23178"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=23178"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=23178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}