Changeset 2819173
- Timestamp:
- 11/16/2022 03:58:19 PM (3 years ago)
- File:
-
- 1 edited
-
pastacode/trunk/readme.txt (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pastacode/trunk/readme.txt
r2819165 r2819173 62 62 63 63 You can use it to display a directory structure. Use pipes, backticks and hyphens like this: 64 ``` 64 65 <code> 65 66 root_folder/ 66 67 |-- a first folder/ 67 68 | |-- holidays.mov 68 69 | |-- javascript-file.js 69 | `-- some_picture.jpg70 | `-- some_picture.jpg 70 71 |-- documents/ 71 72 | |-- spreadsheet.xls 72 73 | |-- manual.pdf 73 74 | |-- document.docx 74 | `-- presentation.ppt75 | `-- test76 `-- README.md77 ``` 75 | `-- presentation.ppt 76 | `-- test 77 `-- README.md 78 </code> 78 79 79 80 = How to setup a custom cache expiration ? = 80 81 81 82 Paste these lines into your functions.php theme file: 82 ``` 83 <code> 83 84 add_filter( 'option_pastacode_cache_duration', 'my_pastacode_cache_duration' ); 84 85 function my_pastacode_cache_duration( $duration ) { … … 86 87 return $duration; 87 88 } 88 ``` 89 </code> 89 90 90 91 = How to change the color scheme ? = … … 95 96 96 97 Paste these lines into your functions.php theme file: 97 ``` 98 <code> 98 99 add_action( 'wp_enqueue_scripts', 'custom_enqueue_script', 11 ); 99 100 function custom_enqueue_script() { … … 102 103 wp_register_style( 'prismcss', $urlofmynewscheme, false, '1', 'all' ); 103 104 } 104 ``` 105 </code> 105 106 106 107 Get inspired of [the default scheme](https://raw.githubusercontent.com/willybahuaud/pastacode-samples/master/default-style.css) to build your schemes … … 109 110 110 111 Paste these lines into your functions.php theme file: 111 ``` 112 <code> 112 113 //If you just want php, html, css and javascript support 113 114 add_filter( 'pastacode_langs', '_pastacode_langs' ); … … 120 121 return $langs; 121 122 } 122 ``` 123 </code> 123 124 124 125 = Ajax compatibility = … … 133 134 134 135 Paste these lines into your functions.php theme file: 135 ``` 136 <code> 136 137 //Take WordPress SVN, for example 137 138 //register a provider … … 175 176 return $source; 176 177 } 177 ``` 178 </code> 178 179 179 180 Do not add you root website!! A contributor can add the shortcode to point your "wp-config.php" to read it!!
Note: See TracChangeset
for help on using the changeset viewer.