Changeset 708382
- Timestamp:
- 05/05/2013 10:04:51 PM (13 years ago)
- Location:
- wpygments
- Files:
-
- 1 edited
- 7 copied
-
tags/1.1 (copied) (copied from wpygments/trunk)
-
tags/1.1/Documentation (copied) (copied from wpygments/trunk/Documentation)
-
tags/1.1/PHPygments (copied) (copied from wpygments/trunk/PHPygments)
-
tags/1.1/README.md (copied) (copied from wpygments/trunk/README.md)
-
tags/1.1/assets (copied) (copied from wpygments/trunk/assets)
-
tags/1.1/readme.txt (copied) (copied from wpygments/trunk/readme.txt) (4 diffs)
-
tags/1.1/wpygments.inc.php (copied) (copied from wpygments/trunk/wpygments.inc.php)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpygments/tags/1.1/readme.txt
r708364 r708382 5 5 Requires at least: 3.3 6 6 Tested up to: 3.5.1 7 Stable tag: 1. 07 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 15 15 WPygments - Wordpress syntax highlighter based on [Pygments](http://pygments.org/ "") 16 16 ====================== 17 Server side syntax highlighter based on Pygments highlighter software. 17 18 19 ## Installation: 20 To use this plugin you need pygments in your server: 21 22 sudo apt-get install python-setuptools 23 easy_install Pygments 24 25 That's all. Now you can download the plugin and install it in your Wordpress. 26 27 ## Usage 28 Once you get installed the plugin the usage is straightforward. just enclose your code between tokens named with the corresponding lang: 29 30 [javascript]....[/javascript] 31 [php]....[/php] 32 33 See "Languages and filetypes supported" section to know available languages. 34 35 #### Parameters 36 Tokens support a few parameters (all optionals): 37 38 [php **style**="manni" **linenumbers**="table"]....[/php] 39 40 `style="manni"` defines code styling. Currently are 22 available styles.<br> 41 Default styling is `default` wich is very nice, but maybe you like other styles. see "Color styles" section. 42 43 `linenumbers="false"` indicates if it should show the numbers and which format. `linenumbers="table"` or `linenumbers="inline"` 44 45 #### Examples 46 [javascript] 47 //comment line 48 var foo = "foo"; 49 var bar = function(){ 50 var baz; 51 } 52 [/javascript] 53 54 Outputs highlighted js with **default** style, and **no** (false) linenumbers. 55 56 [javascript style="monokai" linenumbers="inline"] 57 //comment line 58 var foo = "foo"; 59 var bar = function(){ 60 var baz; 61 } 62 [/javascript] 63 64 Outputs highlighted js with **monokai** style, linenumbers. 65 66 67 ##Color styles 68 These are supported color styles: 69 70 * `monokai`<br> 71  72 73 * `manni`<br> 74  75 76 * `rrt`<br> 77  78 79 * `perldoc`<br> 80  81 82 * `borland`<br> 83  84 85 * `colorful`<br> 86  87 88 * `default`<br> 89  90 91 * `murphy`<br> 92  93 94 * `vs`<br> 95  96 97 * `trac`<br> 98  99 100 * `tango`<br> 101  102 103 * `fruity`<br> 104  105 106 * `autumn`<br> 107  108 109 * `bw`<br> 110  111 112 * `emacs`<br> 113  114 115 * `vim`<br> 116  117 118 * `pastie`<br> 119  120 121 * `friendly`<br> 122  123 124 * `native`<br> 125  126 127 128 ##Languages and filetypes supported 129 130 Pygments not only highlights languages. also highlights filetypes like .conf **Nginx** configuration file, **Apache** (filenames .htaccess, apache.conf, apache2.conf), etc. 131 132 NOTE: to use see "Usage" section 133 134 #####important sdsd; 135 #####General 136 * `apacheconf`: (.htaccess, apache.conf, apache2.conf) 137 * `bash`, `sh`, `ksh`: 138 (*.sh, *.ksh, *.bash, *.ebuild, *.eclass, .bashrc, bashrc) 139 * `ini`, `cfg`: (*.ini, *.cfg) 140 * `makefile`: 141 (*.mak, Makefile, makefile, Makefile.*, GNUmakefile) 142 * `nginx`: 143 Nginx configuration file 144 * `yaml`: 145 (*.yaml, *.yml) 146 * `perl`: 147 Perl (*.pl, *.pm) 148 * `vb.net`: 149 VB.net (*.vb, *.bas) 150 * `console`: 151 Bash Session (*.sh-session) 152 153 #####Javascript 154 * `javascript`: Pure Javascript 155 * `coffeescript`: Pure CoffeeScript 156 * `json`: Pure JSON 157 158 #####PHP 159 * `cssphp`: PHP embedded in CSS 160 * `htmlphp`: PHP embedded in HTML 161 * `jsphp`: PHP embedded in JS 162 * `php`: Pure PHP 163 * `xmlphp`: PHP embedded in XML 164 165 #####Ruby 166 * `ruby`, `duby`: Ruby (*.rb, *.rbw, *.rake, *.gemspec, *.rbx, *.duby) 167 * `csserb`, `cssruby`: Ruby embedded in CSS 168 * `xmlerb`, `xmlruby`: Ruby embedded in XML 169 170 #####CSS and CSS compilers 171 * `css`: 172 CSS (*.css) 173 * `sass`: 174 Sass (*.sass) 175 * `scss`: 176 SCSS (*.scss) 177 178 #####HTML and HTML template systems 179 * `html`: 180 HTML (*.html, *.htm, *.xhtml, *.xslt) 181 * `haml`: 182 Haml (*.haml) 183 * `jade`: 184 Jade (*.jade) 185 186 #####SQL 187 * `sql`: 188 SQL (*.sql) 189 * `sqlite3`: 190 sqlite3con (*.sqlite3-console) 191 * `mysql`: 192 MySQL 193 194 #####Python, jinja & Django 195 * `python`: Pure Python 196 * `python3`: Pure Python 3 197 * `xmldjango`, `xmljinja`: Django/Jinja embedded in XML 198 * `cssdjango`, `cssjinja`: Django/Jinja embedded in CSS 199 * `django`, `jinja`: Pure Django/Jinja 200 * `htmldjango`, `htmljinja`: Django/Jinja embedded in HTML 201 * `jsdjango`, `jsjinja`: Django/Jinja embedded in Javascript 202 203 #####Java & Groovy 204 * `java`: 205 Java (*.java) 206 * `groovy`: 207 Groovy (*.groovy) 208 * `jsp`: 209 Java Server Page (*.jsp) 210 211 #####C, C++, Objetive-c, C Sharp 212 * `cobjdump`: c-objdump (*.c-objdump) 213 * `c`: C (*.c, *.h, *.idc) 214 * `cpp`: C++ (*.cpp, *.hpp, *.c++, *.h++, *.cc, *.hh, *.cxx, *.hxx) 215 * `csharp`: C# (*.cs) 216 * `objectivec`: (*.m) 217 218 #####XML 219 * `xml`: (*.xml, *.xsl, *.rss, *.xslt, *.xsd, *.wsdl) 220 * `xslt`: (*.xsl, *.xslt) 221 18 222 19 223 ## Installation: … … 39 243 40 244 ## Installation: 245 41 246 To use this plugin you need pygments in your server: 42 247 43 ``` 44 sudo apt-get install python-setuptools 45 easy_install Pygments 46 ``` 248 sudo apt-get install python-setuptools 249 easy_install Pygments 250 251 That's all. Now you can download the plugin and install it in your Wordpress. 252 47 253 1. Upload the plugin to the `/wp-content/plugins/` directory 48 2. Activate the plugin through the 'Plugins' menu in WordPress254 1. Activate the plugin through the 'Plugins' menu in WordPress 49 255 50 256 Once you get installed the plugin the usage is straightforward. just enclose your code between tokens named with the corresponding lang: 51 257 52 [javascript]....[/javascript]53 54 [php]....[/php]258 [javascript]....[/javascript] 259 260 [php]....[/php] 55 261 56 262 == Frequently asked questions == … … 62 268 == Screenshots == 63 269 64 1. /assets/screenshot-1.png65 2. /assets/screenshot-1.png270 1. Example highlighted code 271 2. Another example highlighted code 66 272 67 273 == Changelog == 274 275 = 1.1 = 276 * readme.txt fix 277 68 278 = 1.0 = 69 279 * First stable release -
wpygments/trunk/readme.txt
r708364 r708382 5 5 Requires at least: 3.3 6 6 Tested up to: 3.5.1 7 Stable tag: 1. 07 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 15 15 WPygments - Wordpress syntax highlighter based on [Pygments](http://pygments.org/ "") 16 16 ====================== 17 Server side syntax highlighter based on Pygments highlighter software. 17 18 19 ## Installation: 20 To use this plugin you need pygments in your server: 21 22 sudo apt-get install python-setuptools 23 easy_install Pygments 24 25 That's all. Now you can download the plugin and install it in your Wordpress. 26 27 ## Usage 28 Once you get installed the plugin the usage is straightforward. just enclose your code between tokens named with the corresponding lang: 29 30 [javascript]....[/javascript] 31 [php]....[/php] 32 33 See "Languages and filetypes supported" section to know available languages. 34 35 #### Parameters 36 Tokens support a few parameters (all optionals): 37 38 [php **style**="manni" **linenumbers**="table"]....[/php] 39 40 `style="manni"` defines code styling. Currently are 22 available styles.<br> 41 Default styling is `default` wich is very nice, but maybe you like other styles. see "Color styles" section. 42 43 `linenumbers="false"` indicates if it should show the numbers and which format. `linenumbers="table"` or `linenumbers="inline"` 44 45 #### Examples 46 [javascript] 47 //comment line 48 var foo = "foo"; 49 var bar = function(){ 50 var baz; 51 } 52 [/javascript] 53 54 Outputs highlighted js with **default** style, and **no** (false) linenumbers. 55 56 [javascript style="monokai" linenumbers="inline"] 57 //comment line 58 var foo = "foo"; 59 var bar = function(){ 60 var baz; 61 } 62 [/javascript] 63 64 Outputs highlighted js with **monokai** style, linenumbers. 65 66 67 ##Color styles 68 These are supported color styles: 69 70 * `monokai`<br> 71  72 73 * `manni`<br> 74  75 76 * `rrt`<br> 77  78 79 * `perldoc`<br> 80  81 82 * `borland`<br> 83  84 85 * `colorful`<br> 86  87 88 * `default`<br> 89  90 91 * `murphy`<br> 92  93 94 * `vs`<br> 95  96 97 * `trac`<br> 98  99 100 * `tango`<br> 101  102 103 * `fruity`<br> 104  105 106 * `autumn`<br> 107  108 109 * `bw`<br> 110  111 112 * `emacs`<br> 113  114 115 * `vim`<br> 116  117 118 * `pastie`<br> 119  120 121 * `friendly`<br> 122  123 124 * `native`<br> 125  126 127 128 ##Languages and filetypes supported 129 130 Pygments not only highlights languages. also highlights filetypes like .conf **Nginx** configuration file, **Apache** (filenames .htaccess, apache.conf, apache2.conf), etc. 131 132 NOTE: to use see "Usage" section 133 134 #####important sdsd; 135 #####General 136 * `apacheconf`: (.htaccess, apache.conf, apache2.conf) 137 * `bash`, `sh`, `ksh`: 138 (*.sh, *.ksh, *.bash, *.ebuild, *.eclass, .bashrc, bashrc) 139 * `ini`, `cfg`: (*.ini, *.cfg) 140 * `makefile`: 141 (*.mak, Makefile, makefile, Makefile.*, GNUmakefile) 142 * `nginx`: 143 Nginx configuration file 144 * `yaml`: 145 (*.yaml, *.yml) 146 * `perl`: 147 Perl (*.pl, *.pm) 148 * `vb.net`: 149 VB.net (*.vb, *.bas) 150 * `console`: 151 Bash Session (*.sh-session) 152 153 #####Javascript 154 * `javascript`: Pure Javascript 155 * `coffeescript`: Pure CoffeeScript 156 * `json`: Pure JSON 157 158 #####PHP 159 * `cssphp`: PHP embedded in CSS 160 * `htmlphp`: PHP embedded in HTML 161 * `jsphp`: PHP embedded in JS 162 * `php`: Pure PHP 163 * `xmlphp`: PHP embedded in XML 164 165 #####Ruby 166 * `ruby`, `duby`: Ruby (*.rb, *.rbw, *.rake, *.gemspec, *.rbx, *.duby) 167 * `csserb`, `cssruby`: Ruby embedded in CSS 168 * `xmlerb`, `xmlruby`: Ruby embedded in XML 169 170 #####CSS and CSS compilers 171 * `css`: 172 CSS (*.css) 173 * `sass`: 174 Sass (*.sass) 175 * `scss`: 176 SCSS (*.scss) 177 178 #####HTML and HTML template systems 179 * `html`: 180 HTML (*.html, *.htm, *.xhtml, *.xslt) 181 * `haml`: 182 Haml (*.haml) 183 * `jade`: 184 Jade (*.jade) 185 186 #####SQL 187 * `sql`: 188 SQL (*.sql) 189 * `sqlite3`: 190 sqlite3con (*.sqlite3-console) 191 * `mysql`: 192 MySQL 193 194 #####Python, jinja & Django 195 * `python`: Pure Python 196 * `python3`: Pure Python 3 197 * `xmldjango`, `xmljinja`: Django/Jinja embedded in XML 198 * `cssdjango`, `cssjinja`: Django/Jinja embedded in CSS 199 * `django`, `jinja`: Pure Django/Jinja 200 * `htmldjango`, `htmljinja`: Django/Jinja embedded in HTML 201 * `jsdjango`, `jsjinja`: Django/Jinja embedded in Javascript 202 203 #####Java & Groovy 204 * `java`: 205 Java (*.java) 206 * `groovy`: 207 Groovy (*.groovy) 208 * `jsp`: 209 Java Server Page (*.jsp) 210 211 #####C, C++, Objetive-c, C Sharp 212 * `cobjdump`: c-objdump (*.c-objdump) 213 * `c`: C (*.c, *.h, *.idc) 214 * `cpp`: C++ (*.cpp, *.hpp, *.c++, *.h++, *.cc, *.hh, *.cxx, *.hxx) 215 * `csharp`: C# (*.cs) 216 * `objectivec`: (*.m) 217 218 #####XML 219 * `xml`: (*.xml, *.xsl, *.rss, *.xslt, *.xsd, *.wsdl) 220 * `xslt`: (*.xsl, *.xslt) 221 18 222 19 223 ## Installation: … … 39 243 40 244 ## Installation: 245 41 246 To use this plugin you need pygments in your server: 42 247 43 ``` 44 sudo apt-get install python-setuptools 45 easy_install Pygments 46 ``` 248 sudo apt-get install python-setuptools 249 easy_install Pygments 250 251 That's all. Now you can download the plugin and install it in your Wordpress. 252 47 253 1. Upload the plugin to the `/wp-content/plugins/` directory 48 2. Activate the plugin through the 'Plugins' menu in WordPress254 1. Activate the plugin through the 'Plugins' menu in WordPress 49 255 50 256 Once you get installed the plugin the usage is straightforward. just enclose your code between tokens named with the corresponding lang: 51 257 52 [javascript]....[/javascript]53 54 [php]....[/php]258 [javascript]....[/javascript] 259 260 [php]....[/php] 55 261 56 262 == Frequently asked questions == … … 62 268 == Screenshots == 63 269 64 1. /assets/screenshot-1.png65 2. /assets/screenshot-1.png270 1. Example highlighted code 271 2. Another example highlighted code 66 272 67 273 == Changelog == 274 275 = 1.1 = 276 * readme.txt fix 277 68 278 = 1.0 = 69 279 * First stable release
Note: See TracChangeset
for help on using the changeset viewer.