"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/extras/web_plugins/wordpress/README" (12 May 2020, 1177 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 === Highlight plugin ===
    2 
    3 This plugin uses highlight (http://www.andre-simon.de) to add syntax highlighting to WordPress.
    4 
    5 == Description ==
    6 
    7 The highlight utility converts source code of 190 programming languages to HTML
    8 with syntax highlighting. This plugin pipes the content of <pre>-Tags associated
    9 with a lang parameter to highlight, and returns the output code which is included
   10 in the WordPress blog entry.
   11 
   12 Usage:
   13 
   14 Paste the following in the code section of the blog editing form (HTML mode !):
   15 
   16 <pre lang="c">#include <stdio.h>
   17 
   18 int main (void){
   19   printf("This is some random code");
   20   return 0;
   21 }</pre>
   22 
   23 Use the lang parameter to define the programming language (c, php, py, xml, etc).
   24 See the highlight documentation to learn all possible languages.
   25 See the highlight.php file for some formatting options (line numbering, code
   26 indentation, line wrapping etc).
   27 
   28 == Installation ==
   29 
   30 1. Install highlight (www.andre-simon.de) on your host
   31 
   32 2. Unzip the wp_highlight.zip file and upload the content to the
   33    `/wp-content/plugins/` directory
   34 
   35    OR
   36 
   37    Copy the highlight.php file to the `/wp-content/plugins/` directory
   38 
   39 3. Activate the plugin in the WordPress backend