Changeset 2028055
- Timestamp:
- 02/10/2019 12:22:20 PM (7 years ago)
- Location:
- aph-prism-highlighter/trunk
- Files:
-
- 73 added
- 6 edited
-
includes/aphph-admin.php (modified) (10 diffs)
-
includes/aphph-admin_plugin.php (added)
-
includes/aphph-build.php (modified) (2 diffs)
-
includes/aphph-build_plugin.php (added)
-
includes/aphph-config.php (modified) (1 diff)
-
includes/aphph-front_plugin.php (added)
-
includes/prism/components.js (modified) (1 diff)
-
includes/prism/components/index.js (added)
-
includes/prism/components/prism-arduino.js (added)
-
includes/prism/components/prism-arduino.min.js (added)
-
includes/prism/components/prism-arff.js (added)
-
includes/prism/components/prism-arff.min.js (added)
-
includes/prism/components/prism-asm6502.js (added)
-
includes/prism/components/prism-asm6502.min.js (added)
-
includes/prism/components/prism-clojure.js (added)
-
includes/prism/components/prism-clojure.min.js (added)
-
includes/prism/components/prism-csp.js (added)
-
includes/prism/components/prism-csp.min.js (added)
-
includes/prism/components/prism-elm.js (added)
-
includes/prism/components/prism-elm.min.js (added)
-
includes/prism/components/prism-erb.js (added)
-
includes/prism/components/prism-erb.min.js (added)
-
includes/prism/components/prism-flow.js (added)
-
includes/prism/components/prism-flow.min.js (added)
-
includes/prism/components/prism-gedcom.js (added)
-
includes/prism/components/prism-gedcom.min.js (added)
-
includes/prism/components/prism-hpkp.js (added)
-
includes/prism/components/prism-hpkp.min.js (added)
-
includes/prism/components/prism-hsts.js (added)
-
includes/prism/components/prism-hsts.min.js (added)
-
includes/prism/components/prism-ichigojam.js (added)
-
includes/prism/components/prism-ichigojam.min.js (added)
-
includes/prism/components/prism-io.js (added)
-
includes/prism/components/prism-io.min.js (added)
-
includes/prism/components/prism-liquid.js (added)
-
includes/prism/components/prism-liquid.min.js (added)
-
includes/prism/components/prism-lisp.js (added)
-
includes/prism/components/prism-lisp.min.js (added)
-
includes/prism/components/prism-markup-templating.js (added)
-
includes/prism/components/prism-markup-templating.min.js (added)
-
includes/prism/components/prism-n4js.js (added)
-
includes/prism/components/prism-n4js.min.js (added)
-
includes/prism/components/prism-opencl.js (added)
-
includes/prism/components/prism-opencl.min.js (added)
-
includes/prism/components/prism-plsql.js (added)
-
includes/prism/components/prism-plsql.min.js (added)
-
includes/prism/components/prism-pug.js (added)
-
includes/prism/components/prism-pug.min.js (added)
-
includes/prism/components/prism-renpy.js (added)
-
includes/prism/components/prism-renpy.min.js (added)
-
includes/prism/components/prism-soy.js (added)
-
includes/prism/components/prism-soy.min.js (added)
-
includes/prism/components/prism-tap.js (added)
-
includes/prism/components/prism-tap.min.js (added)
-
includes/prism/components/prism-tsx.js (added)
-
includes/prism/components/prism-tsx.min.js (added)
-
includes/prism/components/prism-tt2.js (added)
-
includes/prism/components/prism-tt2.min.js (added)
-
includes/prism/components/prism-vbnet.js (added)
-
includes/prism/components/prism-vbnet.min.js (added)
-
includes/prism/components/prism-velocity.js (added)
-
includes/prism/components/prism-velocity.min.js (added)
-
includes/prism/components/prism-visual-basic.js (added)
-
includes/prism/components/prism-visual-basic.min.js (added)
-
includes/prism/components/prism-wasm.js (added)
-
includes/prism/components/prism-wasm.min.js (added)
-
includes/prism/components/prism-xeora.js (added)
-
includes/prism/components/prism-xeora.min.js (added)
-
includes/prism/components/prism-xquery.js (added)
-
includes/prism/components/prism-xquery.min.js (added)
-
includes/prism/components_.js (added)
-
includes/prism/conponents_json.json (added)
-
includes/prism/plugins/previewers (added)
-
includes/prism/plugins/previewers/index.html (added)
-
includes/prism/plugins/previewers/prism-previewers.css (added)
-
includes/prism/plugins/previewers/prism-previewers.js (added)
-
includes/prism/plugins/previewers/prism-previewers.min.js (added)
-
js/aphph-admin.js (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aph-prism-highlighter/trunk/includes/aphph-admin.php
r1616715 r2028055 5 5 Initiate options when the plugin is activated 6 6 */ 7 private $default_param = array( 8 9 'lang-list' => array( 10 'abap' => 'ABAB', 11 'actionscript' => 'ActionScript', 12 'ada' => 'Ada', 13 'apacheconf' => 'Apache Configuration', 14 'apl' => 'APL', 15 'applescript' => 'AppleScript', 16 'asciidoc' => 'AsciiDoc', 17 'aspnet' => 'ASP.NET', 18 'autohotkey' => 'AutoHotkey', 19 'autoit' => 'AutoIt', 20 'bash' => 'Bash', 21 'basic' => 'BASIC', 22 'batch' => 'Batch', 23 'bison' => 'Bison', 24 'brainfuck' => 'Brainfuck', 25 'bro' => 'Bro', 26 'c' => 'C', 27 'clike' => 'C-Like', 28 'coffeescript' => 'CoffeeScript', 29 'core' => 'Core', 30 'cpp' => 'C++', 31 'crystal' => 'Crystal', 32 'csharp' => 'C#', 33 'css-extras' => 'CSS Extras', 34 'css' => 'CSS', 35 'd' => 'D', 36 'dart' => 'Dart', 37 'diff' => 'Diff', 38 'docker' => 'Docker', 39 'eiffel' => 'Eiffel', 40 'elixir' => 'Elixir', 41 'erlang' => 'Erlang', 42 'fortran' => 'Fortran', 43 'fsharp' => 'F#', 44 'gherkin' => 'Gherkin', 45 'git' => 'Git', 46 'glsl' => 'GLSL', 47 'go' => 'Go', 48 'graphql' => 'GraphQl', 49 'groovy' => 'Groovy', 50 'haml' => 'Haml', 51 'handlebars' => 'Handlebars', 52 'haskell' => 'Haskell', 53 'haxe' => 'Haxe', 54 'http' => 'HTTP', 55 'icon' => 'Icon', 56 'inform7' => 'Inform 7', 57 'ini' => 'Ini', 58 'j' => 'J', 59 'jade' => 'Jade', 60 'java' => 'Java', 61 'javascript' => 'JavaScript', 62 'json' => 'JSON', 63 'jsx' => 'JSX (React JSX)', 64 'julia' => 'Julia', 65 'keyman' => 'Keyman', 66 'kotlin' => 'Kotlin', 67 'latex' => 'LaTeX', 68 'less' => 'Less', 69 'livescript' => 'LiveScript', 70 'lolcode' => 'LOLCODE', 71 'lua' => 'Lua', 72 'makefile' => 'Makefile', 73 'markdown' => 'Markdown', 74 'markup' => 'Markup/HTML/XML', 75 'matlab' => 'MATLAB', 76 'mel' => 'MEL', 77 'mizar' => 'Mizar', 78 'monkey' => 'Monkey', 79 'nasm' => 'NASM', 80 'nginx' => 'nginx', 81 'nim' => 'Nim', 82 'nix' => 'Nix', 83 'nsis' => 'NSIS', 84 'objectivec' => 'Objective-C', 85 'ocaml' => 'OCaml', 86 'oz' => 'Oz', 87 'parigp' => 'PARI/GP', 88 'parser' => 'Parser', 89 'pascal' => 'Pascal', 90 'perl' => 'Perl', 91 'php-extras' => 'PHP Extras', 92 'php' => 'PHP', 93 'powershell' => 'PowerShell', 94 'processing' => 'Processing', 95 'prolog' => 'Prolog', 96 'properties' => 'Properties', 97 'protobuf' => 'Protocol Buffer', 98 'puppet' => 'Puppet', 99 'pure' => 'Pure', 100 'python' => 'Python', 101 'q' => 'Q', 102 'qore' => 'Qore', 103 'r' => 'R', 104 'rest' => 'ReST (reStructuredText)', 105 'rip' => 'Rip', 106 'roboconf' => 'Roboconf', 107 'ruby' => 'Ruby', 108 'rust' => 'Rust', 109 'sas' => 'SAS', 110 'sass' => 'Sass', 111 'scala' => 'Scala', 112 'scheme' => 'Scheme', 113 'scss' => 'Scss', 114 'smalltalk' => 'Smalltalk', 115 'smarty' => 'Smarty', 116 'sql' => 'SQL', 117 'stylus' => 'Stylus', 118 'swift' => 'Swift', 119 'tcl' => 'Tcl', 120 'textile' => 'Textile', 121 'twig' => 'Twig', 122 'typescript' => 'TypeScript', 123 'verilog' => 'Verilog', 124 'vhdl' => 'VHDL', 125 'vim' => 'Vim', 126 'wiki' => 'Wiki Markup', 127 'xojo' => 'Xojo (REAL Basic)', 128 'yaml' => 'YAML', 129 'adddarkplain' => 'Dark Plain', 130 'addlightplain' => 'Light Plain' 131 ), 132 'themes' => array( 133 'default' => 'Default', 134 'coy' => 'Coy', 135 'dark' => 'Dark', 136 'funky' => 'Funky', 137 'okaidia' => 'Okaidia', 138 'solarizedlight' => 'Solarizedlight', 139 'tomorrow' => 'Tomorrow', 140 'twilight' => 'Twilight' 141 ) 142 ); 7 private $components_list; 143 8 144 9 private $data_options = array ( 145 10 'lang-used' => array ( 146 'core',147 'clike',148 11 'php', 149 12 'markup', … … 175 38 public function __construct() 176 39 { 40 $this->init(); 41 177 42 $this->admin_notices = new Aphph_Admin_Notices; 178 43 $this->options = get_option( APHPH_OPTION, array() ); … … 192 57 add_action( 'wp_ajax_aphph-dismiss-notice', array($this, 'ajax_dismiss_notice') ); 193 58 } 59 60 private function init() 61 { 62 $contents = file_get_contents(APHPH_PLUGIN_PATH . APHPH_DS . 'includes/prism/conponents_json.json'); 63 $components = json_decode($contents, true); 64 // Languages 65 foreach ($components as $item => $val) 66 { 67 if ($item == 'languages') { 68 foreach($val as $component_name => $item) { 69 if ($component_name == 'meta') { 70 continue; 71 } 72 $components_list['lang-list'][$component_name] = $item; 73 } 74 75 $components_list['lang-list']['adddarkplain'] = array('title' => 'Dark Plain'); 76 $components_list['lang-list']['addlightplain'] = array('title' => 'Light Plain'); 77 } 78 79 if ($item == 'themes') { 80 foreach($val as $theme_name => $item) { 81 if ($theme_name == 'meta') { 82 continue; 83 } 84 if (is_array($item)) { 85 $title = $item['title']; 86 } else { 87 $title = $item; 88 } 89 $components_list['themes'][$theme_name] = $title; 90 } 91 } 92 93 if ($item == 'plugins') { 94 foreach($val as $theme_name => $item) { 95 if ($theme_name == 'meta') { 96 continue; 97 } 98 if (is_array($item)) { 99 $title = $item['title']; 100 } else { 101 $title = $item; 102 } 103 $components_list['plugins'][$theme_name] = $title; 104 } 105 } 106 } 107 $this->components_list = $components_list; 108 } 194 109 195 110 public function ajax_no_priv() … … 231 146 update_option(APHPH_OPTION, $this->data_options); 232 147 update_option(APHPH_OPTION_VERSION, APHPH_PLUGIN_VERSION); 233 update_option(APHPH_OPTION_PHDATA, $this-> default_param);148 update_option(APHPH_OPTION_PHDATA, $this->components_list); 234 149 add_action('wp_head', array($this, 'build_files')); 235 150 } … … 242 157 { 243 158 update_option(APHPH_OPTION_VERSION, APHPH_PLUGIN_VERSION); 244 update_option(APHPH_OPTION_PHDATA, $this-> default_param);159 update_option(APHPH_OPTION_PHDATA, $this->components_list); 245 160 if (!$plugin_option_version || $plugin_option_version < 1.2) 246 161 { … … 431 346 public function option_language_list() { 432 347 433 $lang_used = $this-> options['lang-used'];348 $lang_used = $this->data_options['lang-used']; 434 349 echo '<div class="aphph-langused-container aphph-clearfix" id="aphph-langused-container">'; 435 350 351 $load_lang['core'] = 'Core'; 352 $lang_list = $this->components_list['lang-list']; 353 436 354 foreach ($lang_used as $lang) 437 355 { 438 $lang_name = $this->options_phdata['lang-list'][$lang]; 439 $file_name = 'prism-'.$lang.'.min.js'; 356 357 $lang_item = $lang_list[$lang]; 358 $lang_title = $lang_list[$lang]['title']; 359 360 // Dependencies 361 if (is_array($lang_item)) { 362 if (key_exists('require', $lang_item)) { 363 if (!is_array($lang_item['require'])) { 364 $lang_item['require'] = array($lang_item['require']); 365 } 366 foreach ($lang_item['require'] as $lang_required) { 367 if (!key_exists($lang_required, $load_lang)) { 368 $load_lang[$lang_required] = $lang_list[$lang_required]['title']; 369 $file_name[$lang_required] = 'prism-'.$lang_required.'.min.js'; 370 } 371 } 372 } 373 } 374 $load_lang[$lang] = $lang_title; 375 $file_name[$lang] = 'prism-'.$lang.'.min.js'; 376 377 } 378 379 // Create lang buttons on the Choose language options 380 foreach ($load_lang as $lang_name => $lang_title) { 440 381 441 382 $msg = ''; 442 443 // Check built in language javascript files 444 if (substr($lang, 0, 3) != 'add' 445 && !file_exists(APHPH_PLUGIN_PATH . APHPH_DS . 'includes' . APHPH_DS . 'prism' . APHPH_DS . 'components' . APHPH_DS . $file_name) 383 if (substr($lang_name, 0, 3) != 'add' 384 && !file_exists(APHPH_PLUGIN_PATH . APHPH_DS . 'includes' . APHPH_DS . 'prism' . APHPH_DS . 'components' . APHPH_DS . $file_name[$lang_name]) 446 385 ) 447 386 { 448 $msg = '<span class="description">File ' . $file_name . ' not exists</span>'; 449 } 450 $checked = in_array($lang_key, $lang_used) ? ' checked="checked"' : ''; 451 452 $id = $lang == 'core' ? 'aphph-langused-disabled' : 'aphph-langused-'.$lang; 453 $class = $lang == 'core' ? ' aphph-langused-disabled' : ''; 454 $link = $lang == 'core' ? '<span><i class="aphph-icon-cross"></i></span>' : '<a class="aphph-del-lang" href="#"><i class="aphph-icon-cross"></i></a>'; 387 $msg = '<span class="description">File ' . $file_name[$lang_name] . ' not exists</span>'; 388 } 389 390 $id = $lang_name == 'core' ? 'aphph-langused-disabled' : 'aphph-langused-'.$lang_name; 391 $class = $lang_name == 'core' ? ' aphph-langused-disabled' : ''; 392 $link = $lang_name == 'core' ? '<span><i class="aphph-icon-cross"></i></span>' : '<a class="aphph-del-lang" href="#"><i class="aphph-icon-cross"></i></a>'; 393 394 if (is_array($lang_list[$lang_name])) { 395 if (key_exists('aliasTitles', $lang_list[$lang_name])) { 396 $lang_title .= ' / ' . join($lang_list[$lang_name]['aliasTitles'], ' / '); 397 } 398 } 399 455 400 echo ' 456 401 <div class="aphph-langused-item'.$class.'" id="'.$id.'"> 457 <input type="hidden" name="'.APHPH_OPTION.'[lang-used][]" value="'.$lang.'"/>458 '.$lang_ name. $link .'402 <input type="hidden" data-lang-name="'.$lang_name.'" name="'.APHPH_OPTION.'[lang-used][]" value="'.$lang_name.'"/> 403 '.$lang_title. $link .' 459 404 </div>' . $msg; 460 405 } 406 461 407 echo '</div> 462 <a class="button" href="#" id="aphph-show-lang">Add Language</a> 463 <a class="button" href="#" id="aphph-delall-langused">Remove All</a>'; 464 465 // Built in languages 408 409 <a class="button" href="#" id="aphph-show-lang">Add Language</a> 410 <a class="button" href="#" id="aphph-delall-langused">Remove All</a>'; 411 412 // CREATE LIST OF ALL AVAILABLE LANGUAGES - Built in languages 413 // 466 414 echo '<div class="aphph-langlist-container" id="aphph-langlist-container">'; 467 415 468 $lang_list = $this->options_phdata['lang-list'];469 416 unset($lang_list['core']); 470 417 echo '<label for="aphph-langlist-core"> … … 474 421 475 422 // Languages 476 foreach ($lang_list as $lang_key => $lang_name) 423 // echo '<pre>'; print_r($lang_list); 424 foreach ($lang_list as $lang_key => $item) 477 425 { 478 426 $msg = ''; 479 480 427 // Built in language 481 428 if (substr($lang_key, 0, 3) != 'add') … … 489 436 } 490 437 } 491 $checked = in_array($lang_key, $lang_used) ? ' checked="checked"' : ''; 438 $checked = key_exists($lang_key, $load_lang) ? ' checked="checked"' : ''; 439 440 $title = $item['title']; 441 if (key_exists('aliasTitles', $item)) { 442 $title .= ' / ' . join($item['aliasTitles'], ' / '); 443 } 492 444 echo ' 493 445 <label for="aphph-langlist-'.$lang_key.'"> 494 446 <input class="aphph-langlist-item" type="checkbox" name="'.$lang_key.'" id="aphph-langlist-'.$lang_key.'" value="'.$lang_key.'"'. $checked .'/> 495 '.$ lang_name.'447 '.$title.' 496 448 </label>' . $msg; 497 449 } … … 500 452 501 453 // Additional language 502 503 454 } 504 455 … … 525 476 public function option_theme_list() { 526 477 527 $theme_list = $this-> options_phdata['themes'];478 $theme_list = $this->components_list['themes']; 528 479 529 480 $options = '<select name="' . APHPH_OPTION . '[theme]">'; -
aph-prism-highlighter/trunk/includes/aphph-build.php
r1642723 r2028055 18 18 $path = APHPH_PLUGIN_PATH . APHPH_DS . 'includes' . APHPH_DS . 'prism' . APHPH_DS; 19 19 // $scripts = file_get_contents($path . 'prism.js') . ';'; 20 20 // echo $path. '<br/>'; 21 // echo WP_PLUGIN_URL; 22 // die; 21 23 $scripts = ''; 22 24 $addcss = ''; … … 110 112 111 113 // Get theme css 112 $theme_name = $options['theme'] == 'default' ? '' : '-'.$options['theme']; 113 $prism_css = file_get_contents($path . 'themes' . APHPH_DS . 'prism' . $theme_name. '.css'); 114 $prism_css = file_get_contents($path . 'themes' . APHPH_DS . $options['theme']. '.css'); 114 115 115 116 // Get plugins css -
aph-prism-highlighter/trunk/includes/aphph-config.php
r1616715 r2028055 12 12 define ('APHPH_PLUGIN_PATH', WP_PLUGIN_DIR . APHPH_DS . APHPH_PLUGIN_DIR_NAME); 13 13 define ('APHPH_PLUGIN_URL', WP_PLUGIN_URL . '/' . APHPH_PLUGIN_DIR_NAME); 14 15 // echo plugin_dir_path( __FILE__ ); -
aph-prism-highlighter/trunk/includes/prism/components.js
r1473175 r2028055 1 var prism_components = { 2 "core": { 3 "meta": { 4 "path": "components/prism-core.js", 5 "option": "mandatory" 6 }, 7 "core": "Core" 8 }, 9 "themes": { 10 "meta": { 11 "path": "themes/{id}.css", 12 "link": "index.html?theme={id}", 13 "exclusive": true 14 }, 15 "prism": { 16 "title": "Default", 17 "option": "default" 18 }, 19 "prism-dark": "Dark", 20 "prism-funky": "Funky", 21 "prism-okaidia": { 22 "title": "Okaidia", 23 "owner": "ocodia" 24 }, 25 "prism-twilight": { 26 "title": "Twilight", 27 "owner": "remybach" 28 }, 29 "prism-coy": { 30 "title": "Coy", 31 "owner": "tshedor" 32 }, 33 "prism-solarizedlight": { 34 "title": "Solarized Light", 35 "owner": "hectormatos2011 " 36 } 37 }, 38 "languages": { 39 "meta": { 40 "path": "components/prism-{id}", 41 "noCSS": true, 42 "examplesPath": "examples/prism-{id}", 43 "addCheckAll": true 44 }, 45 "markup": { 46 "title": "Markup", 47 "aliasTitles": { "html": "HTML", "xml": "XML", "svg": "SVG", "mathml": "MathML" }, 48 "option": "default" 49 }, 50 "css": { 51 "title": "CSS", 52 "option": "default" 53 }, 54 "clike": { 55 "title": "C-like", 56 "option": "default" 57 }, 58 "javascript": { 59 "title": "JavaScript", 60 "option": "default", 61 "require": "clike" 62 }, 63 "abap": { 64 "title": "ABAP", 65 "owner": "dellagustin" 66 }, 67 "actionscript": { 68 "title": "ActionScript", 69 "require": "javascript", 70 "owner": "Golmote" 71 }, 72 "ada": { 73 "title": "Ada", 74 "owner": "Lucretia" 75 }, 76 "apacheconf": { 77 "title": "Apache Configuration", 78 "owner": "GuiTeK" 79 }, 80 "apl": { 81 "title": "APL", 82 "owner": "ngn" 83 }, 84 "applescript": { 85 "title": "AppleScript", 86 "owner": "Golmote" 87 }, 88 "asciidoc": { 89 "title": "AsciiDoc", 90 "owner": "Golmote" 91 }, 92 "aspnet": { 93 "title": "ASP.NET (C#)", 94 "require": "markup", 95 "owner": "nauzilus" 96 }, 97 "autoit": { 98 "title": "AutoIt", 99 "owner": "Golmote" 100 }, 101 "autohotkey": { 102 "title": "AutoHotkey", 103 "owner": "aviaryan" 104 }, 105 "bash": { 106 "title": "Bash", 107 "owner": "zeitgeist87" 108 }, 109 "basic": { 110 "title": "BASIC", 111 "owner": "Golmote" 112 }, 113 "batch": { 114 "title": "Batch", 115 "owner": "Golmote" 116 }, 117 "bison": { 118 "title": "Bison", 119 "require": "c", 120 "owner": "Golmote" 121 }, 122 "brainfuck": { 123 "title": "Brainfuck", 124 "owner": "Golmote" 125 }, 126 "bro": { 127 "title": "Bro", 128 "owner": "wayward710" 129 }, 130 "c": { 131 "title": "C", 132 "require": "clike", 133 "owner": "zeitgeist87" 134 }, 135 "csharp": { 136 "title": "C#", 137 "require": "clike", 138 "owner": "mvalipour" 139 }, 140 "cpp": { 141 "title": "C++", 142 "require": "c", 143 "owner": "zeitgeist87" 144 }, 145 "coffeescript": { 146 "title": "CoffeeScript", 147 "require": "javascript", 148 "owner": "R-osey" 149 }, 150 "crystal": { 151 "title": "Crystal", 152 "require": "ruby", 153 "owner": "MakeNowJust" 154 }, 155 "css-extras": { 156 "title": "CSS Extras", 157 "require": "css", 158 "owner": "milesj" 159 }, 160 "d": { 161 "title": "D", 162 "require": "clike", 163 "owner": "Golmote" 164 }, 165 "dart": { 166 "title": "Dart", 167 "require": "clike", 168 "owner": "Golmote" 169 }, 170 "diff": { 171 "title": "Diff", 172 "owner": "uranusjr" 173 }, 174 "docker": { 175 "title": "Docker", 176 "owner": "JustinBeckwith" 177 }, 178 "eiffel": { 179 "title": "Eiffel", 180 "owner": "Conaclos" 181 }, 182 "elixir": { 183 "title": "Elixir", 184 "owner": "Golmote" 185 }, 186 "erlang": { 187 "title": "Erlang", 188 "owner": "Golmote" 189 }, 190 "fsharp": { 191 "title": "F#", 192 "require": "clike", 193 "owner": "simonreynolds7" 194 }, 195 "fortran": { 196 "title": "Fortran", 197 "owner": "Golmote" 198 }, 199 "gherkin": { 200 "title": "Gherkin", 201 "owner": "hason" 202 }, 203 "git": { 204 "title": "Git", 205 "owner": "lgiraudel" 206 }, 207 "glsl": { 208 "title": "GLSL", 209 "require": "clike", 210 "owner": "Golmote" 211 }, 212 "go": { 213 "title": "Go", 214 "require": "clike", 215 "owner": "arnehormann" 216 }, 217 "graphql": { 218 "title": "GraphQL", 219 "owner": "Golmote" 220 }, 221 "groovy": { 222 "title": "Groovy", 223 "require": "clike", 224 "owner": "robfletcher" 225 }, 226 "haml": { 227 "title": "Haml", 228 "require": "ruby", 229 "owner": "Golmote" 230 }, 231 "handlebars": { 232 "title": "Handlebars", 233 "require": "markup", 234 "owner": "Golmote" 235 }, 236 "haskell": { 237 "title": "Haskell", 238 "owner": "bholst" 239 }, 240 "haxe": { 241 "title": "Haxe", 242 "require": "clike", 243 "owner": "Golmote" 244 }, 245 "http": { 246 "title": "HTTP", 247 "owner": "danielgtaylor" 248 }, 249 "icon": { 250 "title": "Icon", 251 "owner": "Golmote" 252 }, 253 "inform7": { 254 "title": "Inform 7", 255 "owner": "Golmote" 256 }, 257 "ini": { 258 "title": "Ini", 259 "owner": "aviaryan" 260 }, 261 "j": { 262 "title": "J", 263 "owner": "Golmote" 264 }, 265 "jade": { 266 "title": "Jade", 267 "require": "javascript", 268 "owner": "Golmote" 269 }, 270 "java": { 271 "title": "Java", 272 "require": "clike", 273 "owner": "sherblot" 274 }, 275 "json": { 276 "title": "JSON", 277 "owner": "CupOfTea696" 278 }, 279 "julia": { 280 "title": "Julia", 281 "owner": "cdagnino" 282 }, 283 "keyman": { 284 "title": "Keyman", 285 "owner": "mcdurdin" 286 }, 287 "kotlin": { 288 "title": "Kotlin", 289 "require": "clike", 290 "owner": "Golmote" 291 }, 292 "latex": { 293 "title": "LaTeX", 294 "owner": "japborst" 295 }, 296 "less": { 297 "title": "Less", 298 "require": "css", 299 "owner": "Golmote" 300 }, 301 "livescript": { 302 "title": "LiveScript", 303 "owner": "Golmote" 304 }, 305 "lolcode": { 306 "title": "LOLCODE", 307 "owner": "Golmote" 308 }, 309 "lua": { 310 "title": "Lua", 311 "owner": "Golmote" 312 }, 313 "makefile": { 314 "title": "Makefile", 315 "owner": "Golmote" 316 }, 317 "markdown": { 318 "title": "Markdown", 319 "require": "markup", 320 "owner": "Golmote" 321 }, 322 "matlab": { 323 "title": "MATLAB", 324 "owner": "Golmote" 325 }, 326 "mel": { 327 "title": "MEL", 328 "owner": "Golmote" 329 }, 330 "mizar": { 331 "title": "Mizar", 332 "owner": "Golmote" 333 }, 334 "monkey": { 335 "title": "Monkey", 336 "owner": "Golmote" 337 }, 338 "nasm": { 339 "title": "NASM", 340 "owner": "rbmj" 341 }, 342 "nginx": { 343 "title": "nginx", 344 "owner": "westonganger", 345 "require": "clike" 346 }, 347 "nim": { 348 "title": "Nim", 349 "owner": "Golmote" 350 }, 351 "nix": { 352 "title": "Nix", 353 "owner": "Golmote" 354 }, 355 "nsis": { 356 "title": "NSIS", 357 "owner": "idleberg" 358 }, 359 "objectivec": { 360 "title": "Objective-C", 361 "require": "c", 362 "owner": "uranusjr" 363 }, 364 "ocaml": { 365 "title": "OCaml", 366 "owner": "Golmote" 367 }, 368 "oz": { 369 "title": "Oz", 370 "owner": "Golmote" 371 }, 372 "parigp": { 373 "title": "PARI/GP", 374 "owner": "Golmote" 375 }, 376 "parser": { 377 "title": "Parser", 378 "require": "markup", 379 "owner": "Golmote" 380 }, 381 "pascal": { 382 "title": "Pascal", 383 "owner": "Golmote" 384 }, 385 "perl": { 386 "title": "Perl", 387 "owner": "Golmote" 388 }, 389 "php": { 390 "title": "PHP", 391 "require": "clike", 392 "owner": "milesj" 393 }, 394 "php-extras": { 395 "title": "PHP Extras", 396 "require": "php", 397 "owner": "milesj" 398 }, 399 "powershell": { 400 "title": "PowerShell", 401 "owner": "nauzilus" 402 }, 403 "processing": { 404 "title": "Processing", 405 "require": "clike", 406 "owner": "Golmote" 407 }, 408 "prolog": { 409 "title": "Prolog", 410 "owner": "Golmote" 411 }, 412 "properties": { 413 "title": ".properties", 414 "owner": "Golmote" 415 }, 416 "protobuf": { 417 "title": "Protocol Buffers", 418 "require": "clike", 419 "owner": "just-boris" 420 }, 421 "puppet": { 422 "title": "Puppet", 423 "owner": "Golmote" 424 }, 425 "pure": { 426 "title": "Pure", 427 "owner": "Golmote" 428 }, 429 "python": { 430 "title": "Python", 431 "owner": "multipetros" 432 }, 433 "q": { 434 "title": "Q", 435 "owner": "Golmote" 436 }, 437 "qore": { 438 "title": "Qore", 439 "require": "clike", 440 "owner": "temnroegg" 441 }, 442 "r": { 443 "title": "R", 444 "owner": "Golmote" 445 }, 446 "jsx":{ 447 "title": "React JSX", 448 "require": ["markup", "javascript"], 449 "owner": "vkbansal" 450 }, 451 "rest": { 452 "title": "reST (reStructuredText)", 453 "owner": "Golmote" 454 }, 455 "rip": { 456 "title": "Rip", 457 "owner": "ravinggenius" 458 }, 459 "roboconf": { 460 "title": "Roboconf", 461 "owner": "Golmote" 462 }, 463 "ruby": { 464 "title": "Ruby", 465 "require": "clike", 466 "owner": "samflores" 467 }, 468 "rust": { 469 "title": "Rust", 470 "owner": "Golmote" 471 }, 472 "sas": { 473 "title": "SAS", 474 "owner": "Golmote" 475 }, 476 "sass": { 477 "title": "Sass (Sass)", 478 "require": "css", 479 "owner": "Golmote" 480 }, 481 "scss": { 482 "title": "Sass (Scss)", 483 "require": "css", 484 "owner": "MoOx" 485 }, 486 "scala": { 487 "title": "Scala", 488 "require": "java", 489 "owner": "jozic" 490 }, 491 "scheme" : { 492 "title": "Scheme", 493 "owner" : "bacchus123" 494 }, 495 "smalltalk": { 496 "title": "Smalltalk", 497 "owner": "Golmote" 498 }, 499 "smarty": { 500 "title": "Smarty", 501 "require": "markup", 502 "owner": "Golmote" 503 }, 504 "sql": { 505 "title": "SQL", 506 "owner": "multipetros" 507 }, 508 "stylus" : { 509 "title": "Stylus", 510 "owner": "vkbansal" 511 }, 512 "swift": { 513 "title": "Swift", 514 "require": "clike", 515 "owner": "chrischares" 516 }, 517 "tcl": { 518 "title": "Tcl", 519 "owner": "PeterChaplin" 520 }, 521 "textile": { 522 "title": "Textile", 523 "require": "markup", 524 "owner": "Golmote" 525 }, 526 "twig": { 527 "title": "Twig", 528 "require": "markup", 529 "owner": "brandonkelly" 530 }, 531 "typescript":{ 532 "title": "TypeScript", 533 "require": "javascript", 534 "owner": "vkbansal" 535 }, 536 "verilog": { 537 "title": "Verilog", 538 "owner": "a-rey" 539 }, 540 "vhdl": { 541 "title": "VHDL", 542 "owner": "a-rey" 543 }, 544 "vim": { 545 "title": "vim", 546 "owner": "westonganger" 547 }, 548 "wiki": { 549 "title": "Wiki markup", 550 "require": "markup", 551 "owner": "Golmote" 552 }, 553 "xojo": { 554 "title": "Xojo (REALbasic)", 555 "owner": "Golmote" 556 }, 557 "yaml": { 558 "title": "YAML", 559 "owner": "hason" 560 } 561 }, 562 "plugins": { 563 "meta": { 564 "path": "plugins/{id}/prism-{id}", 565 "link": "plugins/{id}/" 566 }, 567 "line-highlight": "Line Highlight", 568 "line-numbers": { 569 "title": "Line Numbers", 570 "owner": "kuba-kubula" 571 }, 572 "show-invisibles": "Show Invisibles", 573 "autolinker": "Autolinker", 574 "wpd": "WebPlatform Docs", 575 "file-highlight": { 576 "title": "File Highlight", 577 "noCSS": true 578 }, 579 "show-language": { 580 "title": "Show Language", 581 "owner": "nauzilus" 582 }, 583 "jsonp-highlight": { 584 "title": "JSONP Highlight", 585 "noCSS": true, 586 "owner": "nauzilus" 587 }, 588 "highlight-keywords": { 589 "title": "Highlight Keywords", 590 "owner": "vkbansal", 591 "noCSS": true 592 }, 593 "remove-initial-line-feed": { 594 "title": "Remove initial line feed", 595 "owner": "Golmote", 596 "noCSS": true 597 }, 598 "previewer-base": { 599 "title": "Previewer: Base", 600 "owner": "Golmote" 601 }, 602 "previewer-color": { 603 "title": "Previewer: Color", 604 "require": "previewer-base", 605 "owner": "Golmote" 606 }, 607 "previewer-gradient": { 608 "title": "Previewer: Gradient", 609 "require": "previewer-base", 610 "owner": "Golmote" 611 }, 612 "previewer-easing": { 613 "title": "Previewer: Easing", 614 "require": "previewer-base", 615 "owner": "Golmote" 616 }, 617 "previewer-time": { 618 "title": "Previewer: Time", 619 "require": "previewer-base", 620 "owner": "Golmote" 621 }, 622 "previewer-angle": { 623 "title": "Previewer: Angle", 624 "require": "previewer-base", 625 "owner": "Golmote" 626 }, 627 "autoloader": { 628 "title": "Autoloader", 629 "owner": "Golmote", 630 "noCSS": true 631 }, 632 "keep-markup": { 633 "title": "Keep Markup", 634 "owner": "Golmote", 635 "after": "normalize-whitespace", 636 "noCSS": true 637 }, 638 "command-line": { 639 "title": "Command Line", 640 "owner": "chriswells0" 641 }, 642 "unescaped-markup": "Unescaped Markup", 643 "normalize-whitespace": { 644 "title": "Normalize Whitespace", 645 "owner": "zeitgeist87", 646 "after": "unescaped-markup", 647 "noCSS": true 648 }, 649 "data-uri-highlight": { 650 "title": "Data-URI Highlight", 651 "owner": "Golmote", 652 "noCSS": true 653 } 654 } 1 var components = { 2 "core": { 3 "meta": { 4 "path": "components/prism-core.js", 5 "option": "mandatory" 6 }, 7 "core": "Core" 8 }, 9 "themes": { 10 "meta": { 11 "path": "themes/{id}.css", 12 "link": "index.html?theme={id}", 13 "exclusive": true 14 }, 15 "prism": { 16 "title": "Default", 17 "option": "default" 18 }, 19 "prism-dark": "Dark", 20 "prism-funky": "Funky", 21 "prism-okaidia": { 22 "title": "Okaidia", 23 "owner": "ocodia" 24 }, 25 "prism-twilight": { 26 "title": "Twilight", 27 "owner": "remybach" 28 }, 29 "prism-coy": { 30 "title": "Coy", 31 "owner": "tshedor" 32 }, 33 "prism-solarizedlight": { 34 "title": "Solarized Light", 35 "owner": "hectormatos2011 " 36 }, 37 "prism-tomorrow": { 38 "title": "Tomorrow Night", 39 "owner": "Rosey" 40 } 41 }, 42 "languages": { 43 "meta": { 44 "path": "components/prism-{id}", 45 "noCSS": true, 46 "examplesPath": "examples/prism-{id}", 47 "addCheckAll": true 48 }, 49 "markup": { 50 "title": "Markup", 51 "alias": [ 52 "html", 53 "xml", 54 "svg", 55 "mathml" 56 ], 57 "aliasTitles": { 58 "html": "HTML", 59 "xml": "XML", 60 "svg": "SVG", 61 "mathml": "MathML" 62 }, 63 "option": "default" 64 }, 65 "css": { 66 "title": "CSS", 67 "option": "default", 68 "peerDependencies": "markup" 69 }, 70 "clike": { 71 "title": "C-like", 72 "option": "default", 73 "overrideExampleHeader": true 74 }, 75 "javascript": { 76 "title": "JavaScript", 77 "require": "clike", 78 "peerDependencies": "markup", 79 "alias": "js", 80 "option": "default" 81 }, 82 "abap": { 83 "title": "ABAP", 84 "owner": "dellagustin" 85 }, 86 "actionscript": { 87 "title": "ActionScript", 88 "require": "javascript", 89 "peerDependencies": "markup", 90 "owner": "Golmote" 91 }, 92 "ada": { 93 "title": "Ada", 94 "owner": "Lucretia" 95 }, 96 "apacheconf": { 97 "title": "Apache Configuration", 98 "owner": "GuiTeK" 99 }, 100 "apl": { 101 "title": "APL", 102 "owner": "ngn" 103 }, 104 "applescript": { 105 "title": "AppleScript", 106 "owner": "Golmote" 107 }, 108 "arduino": { 109 "title": "Arduino", 110 "require": "cpp", 111 "owner": "eisbehr-" 112 }, 113 "arff": { 114 "title": "ARFF", 115 "owner": "Golmote" 116 }, 117 "asciidoc": { 118 "title": "AsciiDoc", 119 "owner": "Golmote" 120 }, 121 "asm6502": { 122 "title": "6502 Assembly", 123 "owner": "kzurawel" 124 }, 125 "aspnet": { 126 "title": "ASP.NET (C#)", 127 "require": [ 128 "markup", 129 "csharp" 130 ], 131 "owner": "nauzilus" 132 }, 133 "autohotkey": { 134 "title": "AutoHotkey", 135 "owner": "aviaryan" 136 }, 137 "autoit": { 138 "title": "AutoIt", 139 "owner": "Golmote" 140 }, 141 "bash": { 142 "title": "Bash", 143 "owner": "zeitgeist87" 144 }, 145 "basic": { 146 "title": "BASIC", 147 "owner": "Golmote" 148 }, 149 "batch": { 150 "title": "Batch", 151 "alias": "shell", 152 "owner": "Golmote" 153 }, 154 "bison": { 155 "title": "Bison", 156 "require": "c", 157 "owner": "Golmote" 158 }, 159 "brainfuck": { 160 "title": "Brainfuck", 161 "owner": "Golmote" 162 }, 163 "bro": { 164 "title": "Bro", 165 "owner": "wayward710" 166 }, 167 "c": { 168 "title": "C", 169 "require": "clike", 170 "owner": "zeitgeist87" 171 }, 172 "csharp": { 173 "title": "C#", 174 "require": "clike", 175 "alias": "dotnet", 176 "owner": "mvalipour" 177 }, 178 "cpp": { 179 "title": "C++", 180 "require": "c", 181 "owner": "zeitgeist87" 182 }, 183 "coffeescript": { 184 "title": "CoffeeScript", 185 "require": "javascript", 186 "owner": "R-osey" 187 }, 188 "clojure": { 189 "title": "Clojure", 190 "owner": "troglotit" 191 }, 192 "crystal": { 193 "title": "Crystal", 194 "require": "ruby", 195 "owner": "MakeNowJust" 196 }, 197 "csp": { 198 "title": "Content-Security-Policy", 199 "owner": "ScottHelme" 200 }, 201 "css-extras": { 202 "title": "CSS Extras", 203 "require": "css", 204 "owner": "milesj" 205 }, 206 "d": { 207 "title": "D", 208 "require": "clike", 209 "owner": "Golmote" 210 }, 211 "dart": { 212 "title": "Dart", 213 "require": "clike", 214 "owner": "Golmote" 215 }, 216 "diff": { 217 "title": "Diff", 218 "owner": "uranusjr" 219 }, 220 "django": { 221 "title": "Django/Jinja2", 222 "require": "markup", 223 "peerDependencies": [ 224 "css", 225 "javascript" 226 ], 227 "alias": "jinja2", 228 "owner": "romanvm" 229 }, 230 "docker": { 231 "title": "Docker", 232 "owner": "JustinBeckwith" 233 }, 234 "eiffel": { 235 "title": "Eiffel", 236 "owner": "Conaclos" 237 }, 238 "elixir": { 239 "title": "Elixir", 240 "owner": "Golmote" 241 }, 242 "elm": { 243 "title": "Elm", 244 "owner": "zwilias" 245 }, 246 "erb": { 247 "title": "ERB", 248 "require": [ 249 "ruby", 250 "markup-templating" 251 ], 252 "owner": "Golmote" 253 }, 254 "erlang": { 255 "title": "Erlang", 256 "owner": "Golmote" 257 }, 258 "fsharp": { 259 "title": "F#", 260 "require": "clike", 261 "owner": "simonreynolds7" 262 }, 263 "flow": { 264 "title": "Flow", 265 "require": "javascript", 266 "owner": "Golmote" 267 }, 268 "fortran": { 269 "title": "Fortran", 270 "owner": "Golmote" 271 }, 272 "gedcom": { 273 "title": "GEDCOM", 274 "owner": "Golmote" 275 }, 276 "gherkin": { 277 "title": "Gherkin", 278 "owner": "hason" 279 }, 280 "git": { 281 "title": "Git", 282 "owner": "lgiraudel" 283 }, 284 "glsl": { 285 "title": "GLSL", 286 "require": "clike", 287 "owner": "Golmote" 288 }, 289 "go": { 290 "title": "Go", 291 "require": "clike", 292 "owner": "arnehormann" 293 }, 294 "graphql": { 295 "title": "GraphQL", 296 "owner": "Golmote" 297 }, 298 "groovy": { 299 "title": "Groovy", 300 "require": "clike", 301 "owner": "robfletcher" 302 }, 303 "haml": { 304 "title": "Haml", 305 "require": "ruby", 306 "peerDependencies": [ 307 "css", 308 "coffeescript", 309 "erb", 310 "javascript", 311 "less", 312 "markdown", 313 "ruby", 314 "scss", 315 "textile" 316 ], 317 "owner": "Golmote" 318 }, 319 "handlebars": { 320 "title": "Handlebars", 321 "require": "markup-templating", 322 "owner": "Golmote" 323 }, 324 "haskell": { 325 "title": "Haskell", 326 "owner": "bholst" 327 }, 328 "haxe": { 329 "title": "Haxe", 330 "require": "clike", 331 "owner": "Golmote" 332 }, 333 "http": { 334 "title": "HTTP", 335 "peerDependencies": [ 336 "javascript", 337 "markup" 338 ], 339 "owner": "danielgtaylor" 340 }, 341 "hpkp": { 342 "title": "HTTP Public-Key-Pins", 343 "owner": "ScottHelme" 344 }, 345 "hsts": { 346 "title": "HTTP Strict-Transport-Security", 347 "owner": "ScottHelme" 348 }, 349 "ichigojam": { 350 "title": "IchigoJam", 351 "owner": "BlueCocoa" 352 }, 353 "icon": { 354 "title": "Icon", 355 "owner": "Golmote" 356 }, 357 "inform7": { 358 "title": "Inform 7", 359 "owner": "Golmote" 360 }, 361 "ini": { 362 "title": "Ini", 363 "owner": "aviaryan" 364 }, 365 "io": { 366 "title": "Io", 367 "owner": "AlesTsurko" 368 }, 369 "j": { 370 "title": "J", 371 "owner": "Golmote" 372 }, 373 "java": { 374 "title": "Java", 375 "require": "clike", 376 "owner": "sherblot" 377 }, 378 "jolie": { 379 "title": "Jolie", 380 "require": "clike", 381 "owner": "thesave" 382 }, 383 "json": { 384 "title": "JSON", 385 "owner": "CupOfTea696" 386 }, 387 "julia": { 388 "title": "Julia", 389 "owner": "cdagnino" 390 }, 391 "keyman": { 392 "title": "Keyman", 393 "owner": "mcdurdin" 394 }, 395 "kotlin": { 396 "title": "Kotlin", 397 "require": "clike", 398 "owner": "Golmote" 399 }, 400 "latex": { 401 "title": "LaTeX", 402 "owner": "japborst" 403 }, 404 "less": { 405 "title": "Less", 406 "require": "css", 407 "owner": "Golmote" 408 }, 409 "liquid": { 410 "title": "Liquid", 411 "owner": "cinhtau" 412 }, 413 "lisp": { 414 "title": "Lisp", 415 "owner": "JuanCaicedo", 416 "alias": [ 417 "emacs", 418 "elisp", 419 "emacs-lisp" 420 ] 421 }, 422 "livescript": { 423 "title": "LiveScript", 424 "owner": "Golmote" 425 }, 426 "lolcode": { 427 "title": "LOLCODE", 428 "owner": "Golmote" 429 }, 430 "lua": { 431 "title": "Lua", 432 "owner": "Golmote" 433 }, 434 "makefile": { 435 "title": "Makefile", 436 "owner": "Golmote" 437 }, 438 "markdown": { 439 "title": "Markdown", 440 "require": "markup", 441 "owner": "Golmote" 442 }, 443 "markup-templating": { 444 "title": "Markup templating", 445 "require": "markup", 446 "owner": "Golmote" 447 }, 448 "matlab": { 449 "title": "MATLAB", 450 "owner": "Golmote" 451 }, 452 "mel": { 453 "title": "MEL", 454 "owner": "Golmote" 455 }, 456 "mizar": { 457 "title": "Mizar", 458 "owner": "Golmote" 459 }, 460 "monkey": { 461 "title": "Monkey", 462 "owner": "Golmote" 463 }, 464 "n4js": { 465 "title": "N4JS", 466 "require": "javascript", 467 "owner": "bsmith-n4" 468 }, 469 "nasm": { 470 "title": "NASM", 471 "owner": "rbmj" 472 }, 473 "nginx": { 474 "title": "nginx", 475 "owner": "westonganger", 476 "require": "clike" 477 }, 478 "nim": { 479 "title": "Nim", 480 "owner": "Golmote" 481 }, 482 "nix": { 483 "title": "Nix", 484 "owner": "Golmote" 485 }, 486 "nsis": { 487 "title": "NSIS", 488 "owner": "idleberg" 489 }, 490 "objectivec": { 491 "title": "Objective-C", 492 "require": "c", 493 "owner": "uranusjr" 494 }, 495 "ocaml": { 496 "title": "OCaml", 497 "owner": "Golmote" 498 }, 499 "opencl": { 500 "title": "OpenCL", 501 "require": "cpp", 502 "peerDependencies": [ 503 "c", 504 "cpp" 505 ], 506 "overrideExampleHeader": true, 507 "owner": "Milania1" 508 }, 509 "oz": { 510 "title": "Oz", 511 "owner": "Golmote" 512 }, 513 "parigp": { 514 "title": "PARI/GP", 515 "owner": "Golmote" 516 }, 517 "parser": { 518 "title": "Parser", 519 "require": "markup", 520 "owner": "Golmote" 521 }, 522 "pascal": { 523 "title": "Pascal", 524 "alias": "objectpascal", 525 "aliasTitles": { 526 "objectpascal": "Object Pascal" 527 }, 528 "owner": "Golmote" 529 }, 530 "perl": { 531 "title": "Perl", 532 "owner": "Golmote" 533 }, 534 "php": { 535 "title": "PHP", 536 "require": [ 537 "clike", 538 "markup-templating" 539 ], 540 "owner": "milesj" 541 }, 542 "php-extras": { 543 "title": "PHP Extras", 544 "require": "php", 545 "owner": "milesj" 546 }, 547 "plsql": { 548 "title": "PL/SQL", 549 "require": "sql", 550 "owner": "Golmote" 551 }, 552 "powershell": { 553 "title": "PowerShell", 554 "owner": "nauzilus" 555 }, 556 "processing": { 557 "title": "Processing", 558 "require": "clike", 559 "owner": "Golmote" 560 }, 561 "prolog": { 562 "title": "Prolog", 563 "owner": "Golmote" 564 }, 565 "properties": { 566 "title": ".properties", 567 "owner": "Golmote" 568 }, 569 "protobuf": { 570 "title": "Protocol Buffers", 571 "require": "clike", 572 "owner": "just-boris" 573 }, 574 "pug": { 575 "title": "Pug", 576 "require": "javascript", 577 "peerDependencies": [ 578 "coffeescript", 579 "ejs", 580 "handlebars", 581 "hogan", 582 "less", 583 "livescript", 584 "markdown", 585 "mustache", 586 "plates", 587 "scss", 588 "stylus", 589 "swig" 590 ], 591 "owner": "Golmote" 592 }, 593 "puppet": { 594 "title": "Puppet", 595 "owner": "Golmote" 596 }, 597 "pure": { 598 "title": "Pure", 599 "peerDependencies": [ 600 "c", 601 "cpp", 602 "fortran", 603 "ats", 604 "dsp" 605 ], 606 "owner": "Golmote" 607 }, 608 "python": { 609 "title": "Python", 610 "owner": "multipetros" 611 }, 612 "q": { 613 "title": "Q (kdb+ database)", 614 "owner": "Golmote" 615 }, 616 "qore": { 617 "title": "Qore", 618 "require": "clike", 619 "owner": "temnroegg" 620 }, 621 "r": { 622 "title": "R", 623 "owner": "Golmote" 624 }, 625 "jsx": { 626 "title": "React JSX", 627 "require": [ 628 "markup", 629 "javascript" 630 ], 631 "owner": "vkbansal" 632 }, 633 "tsx": { 634 "title": "React TSX", 635 "require": [ 636 "jsx", 637 "typescript" 638 ] 639 }, 640 "renpy": { 641 "title": "Ren'py", 642 "owner": "HyuchiaDiego" 643 }, 644 "reason": { 645 "title": "Reason", 646 "require": "clike", 647 "owner": "Golmote" 648 }, 649 "rest": { 650 "title": "reST (reStructuredText)", 651 "owner": "Golmote" 652 }, 653 "rip": { 654 "title": "Rip", 655 "owner": "ravinggenius" 656 }, 657 "roboconf": { 658 "title": "Roboconf", 659 "owner": "Golmote" 660 }, 661 "ruby": { 662 "title": "Ruby", 663 "require": "clike", 664 "owner": "samflores" 665 }, 666 "rust": { 667 "title": "Rust", 668 "owner": "Golmote" 669 }, 670 "sas": { 671 "title": "SAS", 672 "owner": "Golmote" 673 }, 674 "sass": { 675 "title": "Sass (Sass)", 676 "require": "css", 677 "owner": "Golmote" 678 }, 679 "scss": { 680 "title": "Sass (Scss)", 681 "require": "css", 682 "owner": "MoOx" 683 }, 684 "scala": { 685 "title": "Scala", 686 "require": "java", 687 "owner": "jozic" 688 }, 689 "scheme": { 690 "title": "Scheme", 691 "owner": "bacchus123" 692 }, 693 "smalltalk": { 694 "title": "Smalltalk", 695 "owner": "Golmote" 696 }, 697 "smarty": { 698 "title": "Smarty", 699 "require": "markup-templating", 700 "owner": "Golmote" 701 }, 702 "sql": { 703 "title": "SQL", 704 "owner": "multipetros" 705 }, 706 "soy": { 707 "title": "Soy (Closure Template)", 708 "require": "markup-templating", 709 "owner": "Golmote" 710 }, 711 "stylus": { 712 "title": "Stylus", 713 "owner": "vkbansal" 714 }, 715 "swift": { 716 "title": "Swift", 717 "require": "clike", 718 "owner": "chrischares" 719 }, 720 "tap": { 721 "title": "TAP", 722 "owner": "isaacs", 723 "require": "yaml" 724 }, 725 "tcl": { 726 "title": "Tcl", 727 "owner": "PeterChaplin" 728 }, 729 "textile": { 730 "title": "Textile", 731 "require": "markup", 732 "peerDependencies": "css", 733 "owner": "Golmote" 734 }, 735 "tt2": { 736 "title": "Template Toolkit 2", 737 "require": [ 738 "clike", 739 "markup-templating" 740 ], 741 "owner": "gflohr" 742 }, 743 "twig": { 744 "title": "Twig", 745 "require": "markup", 746 "owner": "brandonkelly" 747 }, 748 "typescript": { 749 "title": "TypeScript", 750 "require": "javascript", 751 "alias": "ts", 752 "owner": "vkbansal" 753 }, 754 "vbnet": { 755 "title": "VB.Net", 756 "require": "basic", 757 "owner": "Bigsby" 758 }, 759 "velocity": { 760 "title": "Velocity", 761 "require": "markup", 762 "owner": "Golmote" 763 }, 764 "verilog": { 765 "title": "Verilog", 766 "owner": "a-rey" 767 }, 768 "vhdl": { 769 "title": "VHDL", 770 "owner": "a-rey" 771 }, 772 "vim": { 773 "title": "vim", 774 "owner": "westonganger" 775 }, 776 "visual-basic": { 777 "title": "Visual Basic", 778 "owner": "Golmote", 779 "alias": "vb" 780 }, 781 "wasm": { 782 "title": "WebAssembly", 783 "owner": "Golmote" 784 }, 785 "wiki": { 786 "title": "Wiki markup", 787 "require": "markup", 788 "owner": "Golmote" 789 }, 790 "xeora": { 791 "title": "Xeora", 792 "require": "markup", 793 "owner": "freakmaxi" 794 }, 795 "xojo": { 796 "title": "Xojo (REALbasic)", 797 "owner": "Golmote" 798 }, 799 "xquery": { 800 "title": "XQuery", 801 "require": "markup", 802 "owner": "Golmote" 803 }, 804 "yaml": { 805 "title": "YAML", 806 "owner": "hason" 807 } 808 }, 809 "plugins": { 810 "meta": { 811 "path": "plugins/{id}/prism-{id}", 812 "link": "plugins/{id}/" 813 }, 814 "line-highlight": "Line Highlight", 815 "line-numbers": { 816 "title": "Line Numbers", 817 "owner": "kuba-kubula" 818 }, 819 "show-invisibles": "Show Invisibles", 820 "autolinker": "Autolinker", 821 "wpd": "WebPlatform Docs", 822 "custom-class": { 823 "title": "Custom Class", 824 "owner": "dvkndn", 825 "noCSS": true 826 }, 827 "file-highlight": { 828 "title": "File Highlight", 829 "noCSS": true 830 }, 831 "show-language": { 832 "title": "Show Language", 833 "owner": "nauzilus", 834 "noCSS": true, 835 "require": "toolbar" 836 }, 837 "jsonp-highlight": { 838 "title": "JSONP Highlight", 839 "noCSS": true, 840 "owner": "nauzilus" 841 }, 842 "highlight-keywords": { 843 "title": "Highlight Keywords", 844 "owner": "vkbansal", 845 "noCSS": true 846 }, 847 "remove-initial-line-feed": { 848 "title": "Remove initial line feed", 849 "owner": "Golmote", 850 "noCSS": true 851 }, 852 "previewers": { 853 "title": "Previewers", 854 "owner": "Golmote" 855 }, 856 "autoloader": { 857 "title": "Autoloader", 858 "owner": "Golmote", 859 "noCSS": true 860 }, 861 "keep-markup": { 862 "title": "Keep Markup", 863 "owner": "Golmote", 864 "after": "normalize-whitespace", 865 "noCSS": true 866 }, 867 "command-line": { 868 "title": "Command Line", 869 "owner": "chriswells0" 870 }, 871 "unescaped-markup": "Unescaped Markup", 872 "normalize-whitespace": { 873 "title": "Normalize Whitespace", 874 "owner": "zeitgeist87", 875 "after": "unescaped-markup", 876 "noCSS": true 877 }, 878 "data-uri-highlight": { 879 "title": "Data-URI Highlight", 880 "owner": "Golmote", 881 "noCSS": true 882 }, 883 "toolbar": { 884 "title": "Toolbar", 885 "owner": "mAAdhaTTah" 886 }, 887 "copy-to-clipboard": { 888 "title": "Copy to Clipboard Button", 889 "owner": "mAAdhaTTah", 890 "require": "toolbar", 891 "noCSS": true 892 } 893 } 655 894 }; 895 if (typeof module !== 'undefined' && module.exports) { module.exports = components; } -
aph-prism-highlighter/trunk/js/aphph-admin.js
r1616715 r2028055 28 28 lang_component.require = undefined; 29 29 } else { 30 var lang_component = prism_components.languages[lang];30 var lang_component = components.languages[lang]; 31 31 } 32 32 … … 36 36 // Save dependency fo build later 37 37 lang_tobe_checked.push(curr_lang); 38 38 build_lang_tobe_checked = true; 39 39 if ( lang_component.require != undefined) 40 40 { … … 43 43 lang_required = [lang_required]; 44 44 } 45 45 46 for (k in lang_required) 46 47 { … … 50 51 if (!$checkbox.is(':checked')) { 51 52 $checkbox.click(); 53 // alert('aphph-langlist-' + lang_required[k]); 52 54 } else { 53 55 // Build the lang_tobe_checked 54 lang_required = [];56 build_lang_tobe_checked = true; 55 57 } 56 58 } … … 61 63 62 64 // Build 63 if ( !lang_required.length)65 if (build_lang_tobe_checked) 64 66 { 65 67 // Reverse the order of dependency … … 97 99 98 100 // Remove all language that depend on this lang 99 for (prism_lang in prism_components.languages) 101 dependency = []; 102 for (prism_lang in components.languages) 100 103 { 101 if (prism_components.languages[prism_lang].require == lang) { 102 // console.log('#aphph-langlist-' + lang); 103 var $checkbox = $('#aphph-langlist-' + prism_lang); 104 if ($checkbox.is(':checked')) 105 $checkbox.click(); 104 required = components.languages[prism_lang].require; 105 if (required != undefined) 106 { 107 if (typeof required == 'string') { 108 if (required == lang) { 109 dependency.push(prism_lang); 110 } 111 } else { 112 for (k in required) { 113 if (required[k] == lang) { 114 dependency.push(prism_lang); 115 } 116 } 117 } 106 118 } 119 } 120 121 for (k in dependency) { 122 var $checkbox = $('#aphph-langlist-' + dependency[k]); 123 if ($checkbox.is(':checked')) 124 $checkbox.click(); 107 125 } 108 126 -
aph-prism-highlighter/trunk/readme.txt
r2017203 r2028055 4 4 Requires at least: 3.5 5 5 Tested up to: 5.0.3 6 Stable tag: 1.3 6 Stable tag: 1.3.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 56 56 == Changelog == 57 57 58 = 1.3.1 February 10, 2019) = 59 * Bug fixed due to the dependency changes on the newest prismjs core 60 58 61 = 1.3 January 20, 2019) = 59 62 * Add support to classic editor on Guttenberg
Note: See TracChangeset
for help on using the changeset viewer.