{"id":2579,"date":"2008-02-23T01:52:50","date_gmt":"2008-02-23T01:52:50","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/code-face\/"},"modified":"2008-02-23T01:55:34","modified_gmt":"2008-02-23T01:55:34","slug":"code-face","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/code-face\/","author":335026,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"","requires":"","requires_php":"","requires_plugins":"","header_name":"Code Face Syntax Highlighter","header_author":"Donald Sipe","header_description":"","assets_banners_color":"","last_updated":"2008-02-23 01:55:34","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/djsipe.com\/","header_author_uri":"http:\/\/djsipe.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1540,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"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-2579","plugin","type-plugin","status-publish","hentry","plugin_committers-djsipe"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/code-face.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin is intended to provide on-demand syntax highlighting for   programming code.  It supports many programming languages.  Code blocks are   automatically detected within the HTML of your posts through JavaScript. Only \n  the needed language highlighting resources are loaded. Supported languages: \n  C++, C#, CSS, Delphi, Java, JavaScript, PHP, Python, Ruby, SQL, VB, XML\/HTML.<\/p>\n <p>This package includes the \"syntaxhighlighter\" project:   http:\/\/www.dreamprojections.com\/syntaxhighlighter<\/p>\n <p>INSTALLATION<\/p>\n <p>To install this plugin, unzip and copy the \"codeface\" directory into your \n  plugins directory.  This is typically \/wp-content\/plugins.<\/p>\n <p>Next, check that the theme you are using contains the following PHP function \n  call:  \"wp_footer();\".  This will be typically found somewhere in the \n  \"footer.php\" file.  If your theme doesn't contain this call, copy the   following code into your footer above the closing  tag:<\/p>\n <pre><code>  &lt;?php wp_footer(); ?&gt; <\/code><\/pre>\n <p>Finally, log into the WordPress Admin section and activate the plugin.<\/p>\n <p>USAGE<\/p>\n <p>To highlight the code syntax of a given post, open the post for editing.  You   should see two tabs \"Visual\" and \"Code\" above the rich text editor WordPress \n  provides.  Click the \"Code\" tab.  From there you can edit the HTML of your   post.<\/p>\n <p>To use code highlighting, you'll have to wrap your example code in a<\/p>\n <p>&lt;<\/p>\n <p>pre&gt; or \n   tag and pick the CSS class name for your language (see class names \n  below). For example:<\/p>\n <pre><code>  &lt;pre class=\"php-codeface\"&gt;       &lt;?php            require_once \"myFile.php\";       ?&gt;   &lt;\/pre&gt; <\/code><\/pre>\n <p>NOTE: It's recommended you do <em>NOT<\/em> use  tags in your posts.  It \n  tends to freak out WordPress and you can end up loosing part or all of your \n  post.<\/p>\n <p>Code Face supports syntax highlighting for many different languages. You can   select the appropriate language by adding a \"class\" attribute to the<\/p>\n <p>&lt;<\/p>\n <p>pre&gt; or    tag, like the example above.  Here are the class names you can use   and the language they represent:<\/p>\n <pre><code>    CSS Class Name      Language     ------------------  --------     cplusplus-codeface  C++     csharp-codeface     C#     css-codeface        CSS     delphi-codeface     Delphi     java-codeface       Java     js-codeface         JavaScript     python-codeface     Python     php-codeface        PHP     ruby-codeface       Ruby     sql-codeface        SQL     vb-codeface         VB     xml-codeface        XML     html-codeface       HTML (alias for XML) <\/code><\/pre>\n <p>When you finish editing your post, save it.  Code Face will automatically   detect the code blocks and highlight them for you when you view it on the \n  front-end.<\/p>","raw_excerpt":"This plugin is intended to provide on-demand syntax highlighting for programming code.  It supports many programming languages.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/2579","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=2579"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/djsipe"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=2579"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=2579"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=2579"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=2579"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=2579"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=2579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}