mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 14:40:09 +01:00
Delete geshi
This commit is contained in:
parent
2bb5e2b00e
commit
bcbbf5f3cf
17 changed files with 49 additions and 9465 deletions
4717
includes/geshi.php
4717
includes/geshi.php
File diff suppressed because it is too large
Load diff
|
@ -1,944 +0,0 @@
|
||||||
<?php
|
|
||||||
/*************************************************************************************
|
|
||||||
* css.php
|
|
||||||
* -------
|
|
||||||
* Author: Nigel McNie (nigel@geshi.org), Zéfling (zefling@ikilote.net)
|
|
||||||
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
|
|
||||||
* Release Version: 1.0.8.12
|
|
||||||
* Date Started: 2004/06/18
|
|
||||||
*
|
|
||||||
* CSS language file for GeSHi.
|
|
||||||
*
|
|
||||||
* CHANGES
|
|
||||||
* -------
|
|
||||||
* 2014/07/14 (1.0.8.12)
|
|
||||||
* - update for current CSS3 (properties, value, expression, unites & color)
|
|
||||||
* - remove pseudo class regex
|
|
||||||
* - add rules regex
|
|
||||||
* 2008/05/23 (1.0.7.22)
|
|
||||||
* - Added description of extra language features (SF#1970248)
|
|
||||||
* 2004/11/27 (1.0.3)
|
|
||||||
* - Added support for multiple object splitters
|
|
||||||
* 2004/10/27 (1.0.2)
|
|
||||||
* - Changed regexps to catch "-" symbols
|
|
||||||
* - Added support for URLs
|
|
||||||
* 2004/08/05 (1.0.1)
|
|
||||||
* - Added support for symbols
|
|
||||||
* 2004/07/14 (1.0.0)
|
|
||||||
* - First Release
|
|
||||||
*
|
|
||||||
* TODO (updated 2004/11/27)
|
|
||||||
* -------------------------
|
|
||||||
* * Improve or drop regexps for class/id highlighting
|
|
||||||
* * Re-look at keywords - possibly to make several CSS language
|
|
||||||
* files, all with different versions of CSS in them
|
|
||||||
*
|
|
||||||
*************************************************************************************
|
|
||||||
*
|
|
||||||
* This file is part of GeSHi.
|
|
||||||
*
|
|
||||||
* GeSHi is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* GeSHi is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with GeSHi; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
$language_data = array(
|
|
||||||
'LANG_NAME' => 'CSS',
|
|
||||||
'COMMENT_SINGLE' => array(),
|
|
||||||
'COMMENT_MULTI' => array('/*' => '*/'),
|
|
||||||
'COMMENT_REGEXP' => array(
|
|
||||||
2 => "/(?<=\\()\\s*(?:(?:[a-z0-9]+?:\\/\\/)?[a-z0-9_\\-\\.\\/:]+?)?[a-z]+?\\.[a-z]+?(\\?[^\)]+?)?\\s*?(?=\\))/i"
|
|
||||||
),
|
|
||||||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
|
|
||||||
'QUOTEMARKS' => array('"', "'"),
|
|
||||||
'ESCAPE_CHAR' => '',
|
|
||||||
'ESCAPE_REGEXP' => array(
|
|
||||||
//Simple Single Char Escapes
|
|
||||||
//1 => "#\\\\[nfrtv\$\"\n\\\\]#i",
|
|
||||||
//Hexadecimal Char Specs
|
|
||||||
2 => "#\\\\[\da-fA-F]{1,6}\s?#i",
|
|
||||||
//Unicode Char Specs
|
|
||||||
//3 => "#\\\\u[\da-fA-F]{1,8}#i",
|
|
||||||
),
|
|
||||||
'KEYWORDS' => array(
|
|
||||||
// properties
|
|
||||||
1 => array(
|
|
||||||
'align-content',
|
|
||||||
'align-items',
|
|
||||||
'align-self',
|
|
||||||
'all',
|
|
||||||
'animation',
|
|
||||||
'animation-delay',
|
|
||||||
'animation-direction',
|
|
||||||
'animation-duration',
|
|
||||||
'animation-fill-mode',
|
|
||||||
'animation-iteration-count',
|
|
||||||
'animation-name',
|
|
||||||
'animation-play-state',
|
|
||||||
'animation-timing-function',
|
|
||||||
'backface-visibility',
|
|
||||||
'background',
|
|
||||||
'background-attachment',
|
|
||||||
'background-blend-mode',
|
|
||||||
'background-clip',
|
|
||||||
'background-color',
|
|
||||||
'background-image',
|
|
||||||
'background-origin',
|
|
||||||
'background-position',
|
|
||||||
'background-repeat',
|
|
||||||
'background-size',
|
|
||||||
'border',
|
|
||||||
'border-bottom',
|
|
||||||
'border-bottom-color',
|
|
||||||
'border-bottom-left-radius',
|
|
||||||
'border-bottom-right-radius',
|
|
||||||
'border-bottom-style',
|
|
||||||
'border-bottom-width',
|
|
||||||
'border-collapse',
|
|
||||||
'border-color',
|
|
||||||
'border-image',
|
|
||||||
'border-image-outset',
|
|
||||||
'border-image-repeat',
|
|
||||||
'border-image-slice',
|
|
||||||
'border-image-source',
|
|
||||||
'border-image-width',
|
|
||||||
'border-left',
|
|
||||||
'border-left-color',
|
|
||||||
'border-left-style',
|
|
||||||
'border-left-width',
|
|
||||||
'border-radius',
|
|
||||||
'border-right',
|
|
||||||
'border-right-color',
|
|
||||||
'border-right-style',
|
|
||||||
'border-right-width',
|
|
||||||
'border-spacing',
|
|
||||||
'border-style',
|
|
||||||
'border-top',
|
|
||||||
'border-top-color',
|
|
||||||
'border-top-left-radius',
|
|
||||||
'border-top-right-radius',
|
|
||||||
'border-top-style',
|
|
||||||
'border-top-width',
|
|
||||||
'border-width',
|
|
||||||
'bottom',
|
|
||||||
'box-decoration-break',
|
|
||||||
'box-shadow',
|
|
||||||
'box-sizing',
|
|
||||||
'break-after',
|
|
||||||
'break-before',
|
|
||||||
'break-inside',
|
|
||||||
'caption-side',
|
|
||||||
'clear',
|
|
||||||
'clip',
|
|
||||||
'clip-path',
|
|
||||||
'color',
|
|
||||||
'columns',
|
|
||||||
'column-count',
|
|
||||||
'column-fill',
|
|
||||||
'column-gap',
|
|
||||||
'column-rule',
|
|
||||||
'column-rule-color',
|
|
||||||
'column-rule-style',
|
|
||||||
'column-rule-width',
|
|
||||||
'column-span',
|
|
||||||
'column-width',
|
|
||||||
'content',
|
|
||||||
'counter-increment',
|
|
||||||
'counter-reset',
|
|
||||||
'cursor',
|
|
||||||
'direction',
|
|
||||||
'display',
|
|
||||||
'empty-cells',
|
|
||||||
'fill',
|
|
||||||
'fill-rule',
|
|
||||||
'fill-opacity',
|
|
||||||
'filter',
|
|
||||||
'flex',
|
|
||||||
'flex-basis',
|
|
||||||
'flex-direction',
|
|
||||||
'flex-flow',
|
|
||||||
'flex-grow',
|
|
||||||
'flex-shrink',
|
|
||||||
'flex-wrap',
|
|
||||||
'float',
|
|
||||||
'font',
|
|
||||||
'font-family',
|
|
||||||
'font-feature-settings',
|
|
||||||
'font-kerning',
|
|
||||||
'font-language-override',
|
|
||||||
'font-size',
|
|
||||||
'font-size-adjust',
|
|
||||||
'font-stretch',
|
|
||||||
'font-style',
|
|
||||||
'font-synthesis',
|
|
||||||
'font-variant',
|
|
||||||
'font-variant-alternates',
|
|
||||||
'font-variant-caps',
|
|
||||||
'font-variant-east-asian',
|
|
||||||
'font-variant-ligatures',
|
|
||||||
'font-variant-numeric',
|
|
||||||
'font-variant-position',
|
|
||||||
'font-weight',
|
|
||||||
'grid',
|
|
||||||
'grid-area',
|
|
||||||
'grid-auto-columns',
|
|
||||||
'grid-auto-flow',
|
|
||||||
'grid-auto-position',
|
|
||||||
'grid-auto-rows',
|
|
||||||
'grid-column',
|
|
||||||
'grid-column-start',
|
|
||||||
'grid-column-end',
|
|
||||||
'grid-row',
|
|
||||||
'grid-row-start',
|
|
||||||
'grid-row-end',
|
|
||||||
'grid-template',
|
|
||||||
'grid-template-areas',
|
|
||||||
'grid-template-rows',
|
|
||||||
'grid-template-columns',
|
|
||||||
'height',
|
|
||||||
'hyphens',
|
|
||||||
'icon',
|
|
||||||
'image-rendering',
|
|
||||||
'image-resolution',
|
|
||||||
'image-orientation',
|
|
||||||
'ime-mode',
|
|
||||||
'justify-content',
|
|
||||||
'left',
|
|
||||||
'letter-spacing',
|
|
||||||
'line-break',
|
|
||||||
'line-height',
|
|
||||||
'list-style',
|
|
||||||
'list-style-image',
|
|
||||||
'list-style-position',
|
|
||||||
'list-style-type',
|
|
||||||
'margin',
|
|
||||||
'margin-bottom',
|
|
||||||
'margin-left',
|
|
||||||
'margin-right',
|
|
||||||
'margin-top',
|
|
||||||
'marks',
|
|
||||||
'mask',
|
|
||||||
'mask-type',
|
|
||||||
'max-height',
|
|
||||||
'max-width',
|
|
||||||
'min-height',
|
|
||||||
'min-width',
|
|
||||||
'mix-blend-mode',
|
|
||||||
'nav-down',
|
|
||||||
'nav-index',
|
|
||||||
'nav-left',
|
|
||||||
'nav-right',
|
|
||||||
'nav-up',
|
|
||||||
'object-fit',
|
|
||||||
'object-position',
|
|
||||||
'opacity',
|
|
||||||
'order',
|
|
||||||
'orphans',
|
|
||||||
'outline',
|
|
||||||
'outline-color',
|
|
||||||
'outline-offset',
|
|
||||||
'outline-style',
|
|
||||||
'outline-width',
|
|
||||||
'overflow',
|
|
||||||
'overflow-wrap',
|
|
||||||
'overflow-x',
|
|
||||||
'overflow-y',
|
|
||||||
'overflow-clip-box',
|
|
||||||
'padding',
|
|
||||||
'padding-bottom',
|
|
||||||
'padding-left',
|
|
||||||
'padding-right',
|
|
||||||
'padding-top',
|
|
||||||
'page-break-after',
|
|
||||||
'page-break-before',
|
|
||||||
'page-break-inside',
|
|
||||||
'perspective',
|
|
||||||
'perspective-origin',
|
|
||||||
'pointer-events',
|
|
||||||
'position',
|
|
||||||
'quotes',
|
|
||||||
'resize',
|
|
||||||
'right',
|
|
||||||
'shape-image-threshold',
|
|
||||||
'shape-margin',
|
|
||||||
'shape-outside',
|
|
||||||
'stroke',
|
|
||||||
'stroke-width',
|
|
||||||
'stroke-linecap',
|
|
||||||
'stroke-linejoin',
|
|
||||||
'stroke-miterlimit',
|
|
||||||
'stroke-dasharray',
|
|
||||||
'stroke-dashoffset',
|
|
||||||
'table-layout',
|
|
||||||
'tab-size',
|
|
||||||
'text-align',
|
|
||||||
'text-align-last',
|
|
||||||
'text-combine-horizontal',
|
|
||||||
'text-decoration',
|
|
||||||
'text-decoration-color',
|
|
||||||
'text-decoration-line',
|
|
||||||
'text-decoration-style',
|
|
||||||
'text-indent',
|
|
||||||
'text-orientation',
|
|
||||||
'text-overflow',
|
|
||||||
'text-rendering',
|
|
||||||
'text-shadow',
|
|
||||||
'text-transform',
|
|
||||||
'text-underline-position',
|
|
||||||
'top',
|
|
||||||
'touch-action',
|
|
||||||
'transform',
|
|
||||||
'transform-origin',
|
|
||||||
'transform-style',
|
|
||||||
'transition',
|
|
||||||
'transition-delay',
|
|
||||||
'transition-duration',
|
|
||||||
'transition-property',
|
|
||||||
'transition-timing-function',
|
|
||||||
'unicode-bidi',
|
|
||||||
'unicode-range',
|
|
||||||
'vertical-align',
|
|
||||||
'visibility',
|
|
||||||
'white-space',
|
|
||||||
'widows',
|
|
||||||
'width',
|
|
||||||
'will-change',
|
|
||||||
'word-break',
|
|
||||||
'word-spacing',
|
|
||||||
'word-wrap',
|
|
||||||
'writing-mode',
|
|
||||||
'z-index'
|
|
||||||
),
|
|
||||||
// value
|
|
||||||
2 => array(
|
|
||||||
'absolute',
|
|
||||||
'activeborder',
|
|
||||||
'activecaption',
|
|
||||||
'after-white-space',
|
|
||||||
'ahead',
|
|
||||||
'alternate',
|
|
||||||
'always',
|
|
||||||
'appworkspace',
|
|
||||||
'armenian',
|
|
||||||
'auto',
|
|
||||||
'avoid',
|
|
||||||
'background',
|
|
||||||
'backwards',
|
|
||||||
'baseline',
|
|
||||||
'below',
|
|
||||||
'bevel',
|
|
||||||
'bidi-override',
|
|
||||||
'blink',
|
|
||||||
'block',
|
|
||||||
'block clear',
|
|
||||||
'block width',
|
|
||||||
'block-axis',
|
|
||||||
'bold',
|
|
||||||
'bolder',
|
|
||||||
'border',
|
|
||||||
'border-box',
|
|
||||||
'both',
|
|
||||||
'bottom',
|
|
||||||
'break-word',
|
|
||||||
'butt',
|
|
||||||
'button',
|
|
||||||
'button-bevel',
|
|
||||||
'buttonface',
|
|
||||||
'buttonhighlight',
|
|
||||||
'buttonshadow',
|
|
||||||
'buttontext',
|
|
||||||
'capitalize',
|
|
||||||
'caption',
|
|
||||||
'captiontext',
|
|
||||||
'caret',
|
|
||||||
'center',
|
|
||||||
'checkbox',
|
|
||||||
'circle',
|
|
||||||
'cjk-ideographic',
|
|
||||||
'clip',
|
|
||||||
'close-quote',
|
|
||||||
'collapse',
|
|
||||||
'compact',
|
|
||||||
'condensed',
|
|
||||||
'content',
|
|
||||||
'content-box',
|
|
||||||
'continuous',
|
|
||||||
'crop',
|
|
||||||
'cross',
|
|
||||||
'crosshair',
|
|
||||||
'currentColor',
|
|
||||||
'cursive',
|
|
||||||
'dashed',
|
|
||||||
'decimal',
|
|
||||||
'decimal-leading-zero',
|
|
||||||
'default',
|
|
||||||
'disc',
|
|
||||||
'discard',
|
|
||||||
'dot-dash',
|
|
||||||
'dot-dot-dash',
|
|
||||||
'dotted',
|
|
||||||
'double',
|
|
||||||
'down',
|
|
||||||
'e-resize',
|
|
||||||
'element',
|
|
||||||
'ellipsis',
|
|
||||||
'embed',
|
|
||||||
'end',
|
|
||||||
'evenodd',
|
|
||||||
'expanded',
|
|
||||||
'extra-condensed',
|
|
||||||
'extra-expanded',
|
|
||||||
'fantasy',
|
|
||||||
'fast',
|
|
||||||
'fixed',
|
|
||||||
'forwards',
|
|
||||||
'georgian',
|
|
||||||
'graytext',
|
|
||||||
'groove',
|
|
||||||
'hand',
|
|
||||||
'hebrew',
|
|
||||||
'help',
|
|
||||||
'hidden',
|
|
||||||
'hide',
|
|
||||||
'higher',
|
|
||||||
'highlight',
|
|
||||||
'highlighttext',
|
|
||||||
'hiragana',
|
|
||||||
'hiragana-iroha',
|
|
||||||
'horizontal',
|
|
||||||
'icon',
|
|
||||||
'ignore',
|
|
||||||
'inactiveborder',
|
|
||||||
'inactivecaption',
|
|
||||||
'inactivecaptiontext',
|
|
||||||
'infinite',
|
|
||||||
'infobackground',
|
|
||||||
'infotext',
|
|
||||||
'inherit',
|
|
||||||
'initial',
|
|
||||||
'inline',
|
|
||||||
'inline-axis',
|
|
||||||
'inline-block',
|
|
||||||
'inline-table',
|
|
||||||
'inset',
|
|
||||||
'inside',
|
|
||||||
'intrinsic',
|
|
||||||
'invert',
|
|
||||||
'italic',
|
|
||||||
'justify',
|
|
||||||
'katakana',
|
|
||||||
'katakana-iroha',
|
|
||||||
'landscape',
|
|
||||||
'large',
|
|
||||||
'larger',
|
|
||||||
'left',
|
|
||||||
'level',
|
|
||||||
'lighter',
|
|
||||||
'line-through',
|
|
||||||
'list-item',
|
|
||||||
'listbox',
|
|
||||||
'listitem',
|
|
||||||
'logical',
|
|
||||||
'loud',
|
|
||||||
'lower',
|
|
||||||
'lower-alpha',
|
|
||||||
'lower-greek',
|
|
||||||
'lower-latin',
|
|
||||||
'lower-roman',
|
|
||||||
'lowercase',
|
|
||||||
'ltr',
|
|
||||||
'marker',
|
|
||||||
'match',
|
|
||||||
'medium',
|
|
||||||
'menu',
|
|
||||||
'menulist',
|
|
||||||
'menulist-button',
|
|
||||||
'menulist-text',
|
|
||||||
'menulist-textfield',
|
|
||||||
'menutext',
|
|
||||||
'message-box',
|
|
||||||
'middle',
|
|
||||||
'min-intrinsic',
|
|
||||||
'miter',
|
|
||||||
'mix',
|
|
||||||
'monospace',
|
|
||||||
'move',
|
|
||||||
'multiple',
|
|
||||||
'n-resize',
|
|
||||||
'narrower',
|
|
||||||
'ne-resize',
|
|
||||||
'no-close',
|
|
||||||
'no-close-quote',
|
|
||||||
'no-open-quote',
|
|
||||||
'no-repeat',
|
|
||||||
'none',
|
|
||||||
'nonzero',
|
|
||||||
'normal',
|
|
||||||
'nowrap',
|
|
||||||
'nw-resize',
|
|
||||||
'oblique',
|
|
||||||
'once',
|
|
||||||
'open-quote',
|
|
||||||
'outset',
|
|
||||||
'outside',
|
|
||||||
'overline',
|
|
||||||
'padding',
|
|
||||||
'pointer',
|
|
||||||
'portrait',
|
|
||||||
'pre',
|
|
||||||
'pre-line',
|
|
||||||
'pre-wrap',
|
|
||||||
'push-button',
|
|
||||||
'radio',
|
|
||||||
'read-only',
|
|
||||||
'read-write',
|
|
||||||
'read-write-plaintext-only',
|
|
||||||
'relative',
|
|
||||||
'repeat',
|
|
||||||
'repeat-x',
|
|
||||||
'repeat-y',
|
|
||||||
'reverse',
|
|
||||||
'ridge',
|
|
||||||
'right',
|
|
||||||
'round',
|
|
||||||
'rtl',
|
|
||||||
'run-in',
|
|
||||||
's-resize',
|
|
||||||
'sans-serif',
|
|
||||||
'scroll',
|
|
||||||
'scrollbar',
|
|
||||||
'scrollbarbutton-down',
|
|
||||||
'scrollbarbutton-left',
|
|
||||||
'scrollbarbutton-right',
|
|
||||||
'scrollbarbutton-up',
|
|
||||||
'scrollbargripper-horizontal',
|
|
||||||
'scrollbargripper-vertical',
|
|
||||||
'scrollbarthumb-horizontal',
|
|
||||||
'scrollbarthumb-vertical',
|
|
||||||
'scrollbartrack-horizontal',
|
|
||||||
'scrollbartrack-vertical',
|
|
||||||
'se-resize',
|
|
||||||
'searchfield',
|
|
||||||
'searchfield-close',
|
|
||||||
'searchfield-results',
|
|
||||||
'semi-condensed',
|
|
||||||
'semi-expanded',
|
|
||||||
'separate',
|
|
||||||
'serif',
|
|
||||||
'show',
|
|
||||||
'single',
|
|
||||||
'skip-white-space',
|
|
||||||
'slide',
|
|
||||||
'slider-horizontal',
|
|
||||||
'slider-vertical',
|
|
||||||
'sliderthumb-horizontal',
|
|
||||||
'sliderthumb-vertical',
|
|
||||||
'slow',
|
|
||||||
'small',
|
|
||||||
'small-caps',
|
|
||||||
'small-caption',
|
|
||||||
'smaller',
|
|
||||||
'solid',
|
|
||||||
'space',
|
|
||||||
'square',
|
|
||||||
'square-button',
|
|
||||||
'start',
|
|
||||||
'static',
|
|
||||||
'status-bar',
|
|
||||||
'stretch',
|
|
||||||
'sub',
|
|
||||||
'super',
|
|
||||||
'sw-resize',
|
|
||||||
'table',
|
|
||||||
'table-caption',
|
|
||||||
'table-cell',
|
|
||||||
'table-column',
|
|
||||||
'table-column-group',
|
|
||||||
'table-footer-group',
|
|
||||||
'table-header-group',
|
|
||||||
'table-row',
|
|
||||||
'table-row-group',
|
|
||||||
'text',
|
|
||||||
'text-bottom',
|
|
||||||
'text-top',
|
|
||||||
'textfield',
|
|
||||||
'thick',
|
|
||||||
'thin',
|
|
||||||
'threeddarkshadow',
|
|
||||||
'threedface',
|
|
||||||
'threedhighlight',
|
|
||||||
'threedlightshadow',
|
|
||||||
'threedshadow',
|
|
||||||
'top',
|
|
||||||
'ultra-condensed',
|
|
||||||
'ultra-expanded',
|
|
||||||
'underline',
|
|
||||||
'unfurl',
|
|
||||||
'up',
|
|
||||||
'upper-alpha',
|
|
||||||
'upper-latin',
|
|
||||||
'upper-roman',
|
|
||||||
'uppercase',
|
|
||||||
'vertical',
|
|
||||||
'visible',
|
|
||||||
'visual',
|
|
||||||
'w-resize',
|
|
||||||
'wait',
|
|
||||||
'wave',
|
|
||||||
'wider',
|
|
||||||
'window',
|
|
||||||
'windowframe',
|
|
||||||
'windowtext',
|
|
||||||
'x-large',
|
|
||||||
'x-small',
|
|
||||||
'xx-large',
|
|
||||||
'xx-small'
|
|
||||||
),
|
|
||||||
// function xxx()
|
|
||||||
3 => array(
|
|
||||||
'attr',
|
|
||||||
'calc',
|
|
||||||
'contrast',
|
|
||||||
'cross-fade',
|
|
||||||
'cubic-bezier',
|
|
||||||
'cycle',
|
|
||||||
'device-cmyk',
|
|
||||||
'drop-shadow',
|
|
||||||
'ellipse',
|
|
||||||
'hsl',
|
|
||||||
'hsla',
|
|
||||||
'hwb',
|
|
||||||
'image',
|
|
||||||
'matrix',
|
|
||||||
'matrix3d',
|
|
||||||
'minmax',
|
|
||||||
'grayscale',
|
|
||||||
'perspective',
|
|
||||||
'polygon',
|
|
||||||
'radial-gradient',
|
|
||||||
'translate',
|
|
||||||
'translatex',
|
|
||||||
'translatey',
|
|
||||||
'translatez',
|
|
||||||
'translate3d',
|
|
||||||
'skew',
|
|
||||||
'skewx',
|
|
||||||
'skewy',
|
|
||||||
'saturate',
|
|
||||||
'sepia',
|
|
||||||
'scale',
|
|
||||||
'scalex',
|
|
||||||
'scaley',
|
|
||||||
'scalez',
|
|
||||||
'scale3d',
|
|
||||||
'steps',
|
|
||||||
'rect',
|
|
||||||
'repeating-linear-gradient',
|
|
||||||
'repeating-radial-gradient',
|
|
||||||
'rgb',
|
|
||||||
'rgba',
|
|
||||||
'rotate',
|
|
||||||
'rotatex',
|
|
||||||
'rotatey',
|
|
||||||
'rotatez',
|
|
||||||
'rotate3d',
|
|
||||||
'url',
|
|
||||||
'var'
|
|
||||||
),
|
|
||||||
// colors
|
|
||||||
4 => array(
|
|
||||||
'aliceblue',
|
|
||||||
'antiquewhite',
|
|
||||||
'aqua',
|
|
||||||
'aquamarine',
|
|
||||||
'azure',
|
|
||||||
'beige',
|
|
||||||
'bisque',
|
|
||||||
'black',
|
|
||||||
'blanchedalmond',
|
|
||||||
'blue',
|
|
||||||
'blueviolet',
|
|
||||||
'brown',
|
|
||||||
'burlywood',
|
|
||||||
'cadetblue',
|
|
||||||
'chartreuse',
|
|
||||||
'chocolate',
|
|
||||||
'coral',
|
|
||||||
'cornflowerblue',
|
|
||||||
'cornsilk',
|
|
||||||
'crimson',
|
|
||||||
'cyan',
|
|
||||||
'darkblue',
|
|
||||||
'darkcyan',
|
|
||||||
'darkgoldenrod',
|
|
||||||
'darkgray',
|
|
||||||
'darkgreen',
|
|
||||||
'darkgrey',
|
|
||||||
'darkkhaki',
|
|
||||||
'darkmagenta',
|
|
||||||
'darkolivegreen',
|
|
||||||
'darkorange',
|
|
||||||
'darkorchid',
|
|
||||||
'darkred',
|
|
||||||
'darksalmon',
|
|
||||||
'darkseagreen',
|
|
||||||
'darkslateblue',
|
|
||||||
'darkslategray',
|
|
||||||
'darkslategrey',
|
|
||||||
'darkturquoise',
|
|
||||||
'darkviolet',
|
|
||||||
'deeppink',
|
|
||||||
'deepskyblue',
|
|
||||||
'dimgray',
|
|
||||||
'dimgrey',
|
|
||||||
'dodgerblue',
|
|
||||||
'firebrick',
|
|
||||||
'floralwhite',
|
|
||||||
'forestgreen',
|
|
||||||
'fuchsia',
|
|
||||||
'gainsboro',
|
|
||||||
'ghostwhite',
|
|
||||||
'gold',
|
|
||||||
'goldenrod',
|
|
||||||
'gray',
|
|
||||||
'green',
|
|
||||||
'greenyellow',
|
|
||||||
'grey',
|
|
||||||
'honeydew',
|
|
||||||
'hotpink',
|
|
||||||
'indianred',
|
|
||||||
'indigo',
|
|
||||||
'ivory',
|
|
||||||
'khaki',
|
|
||||||
'lavender',
|
|
||||||
'lavenderblush',
|
|
||||||
'lawngreen',
|
|
||||||
'lemonchiffon',
|
|
||||||
'lightblue',
|
|
||||||
'lightcoral',
|
|
||||||
'lightcyan',
|
|
||||||
'lightgoldenrodyellow',
|
|
||||||
'lightgray',
|
|
||||||
'lightgreen',
|
|
||||||
'lightgrey',
|
|
||||||
'lightpink',
|
|
||||||
'lightsalmon',
|
|
||||||
'lightseagreen',
|
|
||||||
'lightskyblue',
|
|
||||||
'lightslategray',
|
|
||||||
'lightslategrey',
|
|
||||||
'lightsteelblue',
|
|
||||||
'lightyellow',
|
|
||||||
'lime',
|
|
||||||
'limegreen',
|
|
||||||
'linen',
|
|
||||||
'magenta',
|
|
||||||
'maroon',
|
|
||||||
'mediumaquamarine',
|
|
||||||
'mediumblue',
|
|
||||||
'mediumorchid',
|
|
||||||
'mediumpurple',
|
|
||||||
'mediumseagreen',
|
|
||||||
'mediumslateblue',
|
|
||||||
'mediumspringgreen',
|
|
||||||
'mediumturquoise',
|
|
||||||
'mediumvioletred',
|
|
||||||
'midnightblue',
|
|
||||||
'mintcream',
|
|
||||||
'mistyrose',
|
|
||||||
'moccasin',
|
|
||||||
'navajowhite',
|
|
||||||
'navy',
|
|
||||||
'oldlace',
|
|
||||||
'olive',
|
|
||||||
'olivedrab',
|
|
||||||
'orange',
|
|
||||||
'orangered',
|
|
||||||
'orchid',
|
|
||||||
'palegoldenrod',
|
|
||||||
'palegreen',
|
|
||||||
'paleturquoise',
|
|
||||||
'palevioletred',
|
|
||||||
'papayawhip',
|
|
||||||
'peachpuff',
|
|
||||||
'peru',
|
|
||||||
'pink',
|
|
||||||
'plum',
|
|
||||||
'powderblue',
|
|
||||||
'purple',
|
|
||||||
'rebeccapurple',
|
|
||||||
'red',
|
|
||||||
'rosybrown',
|
|
||||||
'royalblue',
|
|
||||||
'saddlebrown',
|
|
||||||
'salmon',
|
|
||||||
'sandybrown',
|
|
||||||
'seagreen',
|
|
||||||
'seashell',
|
|
||||||
'sienna',
|
|
||||||
'silver',
|
|
||||||
'skyblue',
|
|
||||||
'slateblue',
|
|
||||||
'slategray',
|
|
||||||
'slategrey',
|
|
||||||
'snow',
|
|
||||||
'springgreen',
|
|
||||||
'steelblue',
|
|
||||||
'tan',
|
|
||||||
'teal',
|
|
||||||
'thistle',
|
|
||||||
'transparent',
|
|
||||||
'tomato',
|
|
||||||
'turquoise',
|
|
||||||
'violet',
|
|
||||||
'wheat',
|
|
||||||
'white',
|
|
||||||
'whitesmoke',
|
|
||||||
'yellow',
|
|
||||||
'yellowgreen'
|
|
||||||
),
|
|
||||||
// pseudo class
|
|
||||||
5 => array(
|
|
||||||
'active',
|
|
||||||
'after',
|
|
||||||
'before',
|
|
||||||
'checked',
|
|
||||||
'choices',
|
|
||||||
'dir',
|
|
||||||
'disabled',
|
|
||||||
'empty',
|
|
||||||
'enabled',
|
|
||||||
'first',
|
|
||||||
'first-child',
|
|
||||||
'first-letter',
|
|
||||||
'first-line',
|
|
||||||
'first-of-type',
|
|
||||||
'focus',
|
|
||||||
'fullscreen',
|
|
||||||
'hover',
|
|
||||||
'indeterminate',
|
|
||||||
'in-range',
|
|
||||||
'invalid',
|
|
||||||
'lang',
|
|
||||||
'last-child',
|
|
||||||
'last-of-type',
|
|
||||||
'link',
|
|
||||||
'not',
|
|
||||||
'nth-child',
|
|
||||||
'nth-last-child',
|
|
||||||
'nth-last-of-type',
|
|
||||||
'nth-of-type',
|
|
||||||
'only-child',
|
|
||||||
'only-of-type',
|
|
||||||
'optional',
|
|
||||||
'out-of-range',
|
|
||||||
'repeat-index',
|
|
||||||
'repeat-item',
|
|
||||||
'required',
|
|
||||||
'root',
|
|
||||||
'scope',
|
|
||||||
'selection',
|
|
||||||
'target',
|
|
||||||
'valid',
|
|
||||||
'value',
|
|
||||||
'visited'
|
|
||||||
)
|
|
||||||
),
|
|
||||||
'SYMBOLS' => array(
|
|
||||||
'(', ')', '{', '}', ':', ';',
|
|
||||||
'>', '+', '*', ',', '^', '='
|
|
||||||
),
|
|
||||||
'CASE_SENSITIVE' => array(
|
|
||||||
GESHI_COMMENTS => false,
|
|
||||||
1 => true,
|
|
||||||
2 => true,
|
|
||||||
3 => true,
|
|
||||||
4 => true,
|
|
||||||
5 => true
|
|
||||||
),
|
|
||||||
'STYLES' => array(
|
|
||||||
'KEYWORDS' => array(
|
|
||||||
1 => 'color: #000000; font-weight: bold;',
|
|
||||||
2 => 'color: #993333;',
|
|
||||||
3 => 'color: #9932cc;',
|
|
||||||
4 => 'color: #dc143c;',
|
|
||||||
5 => 'color: #F5758F;',
|
|
||||||
),
|
|
||||||
'COMMENTS' => array(
|
|
||||||
2 => 'color: #ff0000; font-style: italic;',
|
|
||||||
'MULTI' => 'color: #808080; font-style: italic;'
|
|
||||||
),
|
|
||||||
'ESCAPE_CHAR' => array(
|
|
||||||
0 => 'color: #000099; font-weight: bold;',
|
|
||||||
//1 => 'color: #000099; font-weight: bold;',
|
|
||||||
2 => 'color: #000099; font-weight: bold;'
|
|
||||||
//3 => 'color: #000099; font-weight: bold;'
|
|
||||||
),
|
|
||||||
'BRACKETS' => array(
|
|
||||||
0 => 'color: #00AA00;'
|
|
||||||
),
|
|
||||||
'STRINGS' => array(
|
|
||||||
0 => 'color: #ff0000;'
|
|
||||||
),
|
|
||||||
'NUMBERS' => array(
|
|
||||||
0 => 'color: #cc66cc;'
|
|
||||||
),
|
|
||||||
'METHODS' => array(),
|
|
||||||
'SYMBOLS' => array(
|
|
||||||
0 => 'color: #00AA00;'
|
|
||||||
),
|
|
||||||
'SCRIPT' => array(),
|
|
||||||
'REGEXPS' => array(
|
|
||||||
0 => 'color: #cc00cc;',
|
|
||||||
1 => 'color: #6666ff;',
|
|
||||||
2 => 'color: #3F84D9; font-weight: bold;',
|
|
||||||
3 => 'color: #933;',
|
|
||||||
4 => 'color: #444;'
|
|
||||||
)
|
|
||||||
),
|
|
||||||
'URLS' => array(
|
|
||||||
1 => '',
|
|
||||||
2 => '',
|
|
||||||
3 => '',
|
|
||||||
4 => '',
|
|
||||||
5 => ''
|
|
||||||
),
|
|
||||||
'OOLANG' => false,
|
|
||||||
'OBJECT_SPLITTERS' => array(),
|
|
||||||
'REGEXPS' => array(
|
|
||||||
//DOM Node ID
|
|
||||||
0 => '\#[a-zA-Z0-9\-_]+(?:\\\\:[a-zA-Z0-9\-_]+)*',
|
|
||||||
//CSS classname
|
|
||||||
1 => '\.(?!\d)[a-zA-Z0-9\-_]+(?:\\\\:[a-zA-Z0-9\-_]+)*\b(?=[\{\.#\s,:].|<\|)',
|
|
||||||
//CSS rules
|
|
||||||
2 => '\@(?!\d)[a-zA-Z0-9\-_]+(?:\\\\:[a-zA-Z0-9\-_]+)*\b(?=[\{\.#\s,:].|<\|)',
|
|
||||||
//Measurements
|
|
||||||
3 => '[+\-]?(\d+|(\d*\.\d+))(em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx|%)',
|
|
||||||
//var
|
|
||||||
4 => '(--[a-zA-Z0-9\-]*)'
|
|
||||||
),
|
|
||||||
'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
|
||||||
'SCRIPT_DELIMITERS' => array(),
|
|
||||||
'HIGHLIGHT_STRICT_BLOCK' => array(),
|
|
||||||
'TAB_WIDTH' => 4,
|
|
||||||
'PARSER_CONTROL' => array(
|
|
||||||
'KEYWORDS' => array(
|
|
||||||
'DISALLOWED_AFTER' => '(?![\-a-zA-Z0-9_\|%\\-&\.])',
|
|
||||||
'DISALLOWED_BEFORE' => '(?<![\-a-zA-Z0-9_\|%\\~&\.])',
|
|
||||||
1 => array(
|
|
||||||
'DISALLOWED_AFTER' => '(?![\-a-zA-Z0-9_\|%\\-&\.])(?=\s*:)'
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
|
|
@ -1,68 +0,0 @@
|
||||||
<?php
|
|
||||||
/*************************************************************************************
|
|
||||||
* green.php
|
|
||||||
*
|
|
||||||
*************************************************************************************
|
|
||||||
*
|
|
||||||
* This file is part of GeSHi.
|
|
||||||
*
|
|
||||||
* GeSHi is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* GeSHi is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with GeSHi; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
$language_data = array(
|
|
||||||
'LANG_NAME' => 'Example',
|
|
||||||
'COMMENT_SINGLE' => array(
|
|
||||||
1 => '>',
|
|
||||||
),
|
|
||||||
'COMMENT_MULTI' => array(),
|
|
||||||
'COMMENT_REGEXP' => array(),
|
|
||||||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
|
|
||||||
'QUOTEMARKS' => array(),
|
|
||||||
'ESCAPE_CHAR' => '',
|
|
||||||
'ESCAPE_REGEXP' => array(),
|
|
||||||
'HARDQUOTE' => array(),
|
|
||||||
'HARDESCAPE' => array(),
|
|
||||||
'HARDCHAR' => '',
|
|
||||||
'KEYWORDS' => array(),
|
|
||||||
'CASE_SENSITIVE' => array(
|
|
||||||
1 => false
|
|
||||||
),
|
|
||||||
'SYMBOLS' => array(
|
|
||||||
0 => array(
|
|
||||||
''
|
|
||||||
)
|
|
||||||
),
|
|
||||||
'STYLES' => array(
|
|
||||||
'KEYWORDS' => array(),
|
|
||||||
'COMMENTS' => array(
|
|
||||||
1 => 'font-style: normal; color: #789922; line-height: 1.2;',
|
|
||||||
),
|
|
||||||
'ESCAPE_CHAR' => array(),
|
|
||||||
'BRACKETS' => array(),
|
|
||||||
'STRINGS' => array(),
|
|
||||||
'METHODS' => array(),
|
|
||||||
'SYMBOLS' => array(),
|
|
||||||
'REGEXPS' => array(),
|
|
||||||
'SCRIPT' => array()
|
|
||||||
),
|
|
||||||
'URLS' => array(),
|
|
||||||
'OOLANG' => false,
|
|
||||||
'OBJECT_SPLITTERS' => array(),
|
|
||||||
'REGEXPS' => array(),
|
|
||||||
'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
|
||||||
'SCRIPT_DELIMITERS' => array(),
|
|
||||||
'HIGHLIGHT_STRICT_BLOCK' => array(),
|
|
||||||
);
|
|
|
@ -1,205 +0,0 @@
|
||||||
<?php
|
|
||||||
/*************************************************************************************
|
|
||||||
* html5.php
|
|
||||||
* ---------------
|
|
||||||
* Author: Nigel McNie (nigel@geshi.org)
|
|
||||||
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
|
|
||||||
* Release Version: 1.0.8.12
|
|
||||||
* Date Started: 2004/07/10
|
|
||||||
*
|
|
||||||
* HTML 5 language file for GeSHi.
|
|
||||||
*
|
|
||||||
* CHANGES
|
|
||||||
* -------
|
|
||||||
* 2005/12/28 (1.0.4)
|
|
||||||
* - Removed escape character for strings
|
|
||||||
* 2004/11/27 (1.0.3)
|
|
||||||
* - Added support for multiple object splitters
|
|
||||||
* 2004/10/27 (1.0.2)
|
|
||||||
* - Added support for URLs
|
|
||||||
* 2004/08/05 (1.0.1)
|
|
||||||
* - Added INS and DEL
|
|
||||||
* - Removed the background colour from tags' styles
|
|
||||||
* 2004/07/14 (1.0.0)
|
|
||||||
* - First Release
|
|
||||||
*
|
|
||||||
* TODO (updated 2004/11/27)
|
|
||||||
* -------------------------
|
|
||||||
* * Check that only HTML4 strict attributes are highlighted
|
|
||||||
* * Eliminate empty tags that aren't allowed in HTML4 strict
|
|
||||||
* * Split to several files - html4trans, xhtml1 etc
|
|
||||||
*
|
|
||||||
*************************************************************************************
|
|
||||||
*
|
|
||||||
* This file is part of GeSHi.
|
|
||||||
*
|
|
||||||
* GeSHi is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* GeSHi is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with GeSHi; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
$language_data = array(
|
|
||||||
'LANG_NAME' => 'HTML5',
|
|
||||||
'COMMENT_SINGLE' => array(),
|
|
||||||
'COMMENT_MULTI' => array(),
|
|
||||||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
|
|
||||||
'QUOTEMARKS' => array("'", '"'),
|
|
||||||
'ESCAPE_CHAR' => '',
|
|
||||||
'KEYWORDS' => array(
|
|
||||||
2 => array(
|
|
||||||
'a', 'abbr', 'address', 'article', 'area', 'aside', 'audio',
|
|
||||||
|
|
||||||
'base', 'bdo', 'blockquote', 'body', 'br', 'button', 'b',
|
|
||||||
|
|
||||||
'caption', 'cite', 'code', 'colgroup', 'col', 'canvas', 'command', 'datalist', 'details',
|
|
||||||
|
|
||||||
'dd', 'del', 'dfn', 'div', 'dl', 'dt',
|
|
||||||
|
|
||||||
'em', 'embed',
|
|
||||||
|
|
||||||
'fieldset', 'form', 'figcaption', 'figure', 'footer',
|
|
||||||
|
|
||||||
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'html', 'header', 'hgroup',
|
|
||||||
|
|
||||||
'iframe', 'ilayer', 'img', 'input', 'ins', 'isindex', 'i',
|
|
||||||
|
|
||||||
'kbd', 'keygen',
|
|
||||||
|
|
||||||
'label', 'legend', 'link', 'li',
|
|
||||||
|
|
||||||
'map', 'meta', 'mark', 'meter',
|
|
||||||
|
|
||||||
'noscript', 'nav',
|
|
||||||
|
|
||||||
'object', 'ol', 'optgroup', 'option', 'output',
|
|
||||||
|
|
||||||
'param', 'pre', 'p', 'progress',
|
|
||||||
|
|
||||||
'q',
|
|
||||||
|
|
||||||
'rp', 'rt', 'ruby',
|
|
||||||
|
|
||||||
'samp', 'script', 'select', 'small', 'span', 'strong', 'style', 'sub', 'sup', 's', 'section', 'source', 'summary',
|
|
||||||
|
|
||||||
'table', 'tbody', 'td', 'textarea', 'text', 'tfoot', 'thead', 'th', 'title', 'tr', 'time',
|
|
||||||
|
|
||||||
'ul',
|
|
||||||
|
|
||||||
'var', 'video',
|
|
||||||
|
|
||||||
'wbr',
|
|
||||||
),
|
|
||||||
3 => array(
|
|
||||||
'abbr', 'accept-charset', 'accept', 'accesskey', 'action', 'align', 'alink', 'alt', 'archive', 'axis', 'autocomplete', 'autofocus',
|
|
||||||
'background', 'bgcolor', 'border',
|
|
||||||
'cellpadding', 'cellspacing', 'char', 'charoff', 'charset', 'checked', 'cite', 'class', 'classid', 'clear', 'code', 'codebase', 'codetype', 'color', 'cols', 'colspan', 'compact', 'content', 'coords', 'contenteditable', 'contextmenu',
|
|
||||||
'data', 'datetime', 'declare', 'defer', 'dir', 'disabled', 'draggable', 'dropzone',
|
|
||||||
'enctype',
|
|
||||||
'face', 'for', 'frame', 'frameborder', 'form', 'formaction', 'formenctype', 'formmethod', 'formnovalidate', 'formtarget',
|
|
||||||
'headers', 'height', 'href', 'hreflang', 'hspace', 'http-equiv', 'hidden',
|
|
||||||
'id', 'ismap',
|
|
||||||
'label', 'lang', 'language', 'link', 'longdesc',
|
|
||||||
'marginheight', 'marginwidth', 'maxlength', 'media', 'method', 'multiple', 'min', 'max',
|
|
||||||
'name', 'nohref', 'noresize', 'noshade', 'nowrap', 'novalidate',
|
|
||||||
'object', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onfocus', 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 'onmousedown', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onselect', 'onsubmit', 'onunload', 'onafterprint', 'onbeforeprint', 'onbeforeonload', 'onerror', 'onhaschange', 'onmessage', 'onoffline', 'ononline', 'onpagehide', 'onpageshow', 'onpopstate', 'onredo', 'onresize', 'onstorage', 'onundo', 'oncontextmenu', 'onformchange', 'onforminput', 'oninput', 'oninvalid', 'ondrag', 'ondragend', 'ondragenter', 'ondragleave', 'ondragover', 'ondragstart', 'ondrop', 'onmousewheel', 'onscroll', 'oncanplay', 'oncanplaythrough', 'ondurationchange', 'onemptied', 'onended', 'onloadeddata', 'onloadedmetadata', 'onloadstart', 'onpause', 'onplay', 'onplaying', 'onprogress', 'onratechange', 'onreadystatechange', 'onseeked', 'onseeking', 'onstalled', 'onsuspend', 'ontimeupdate', 'onvolumechange', 'onwaiting',
|
|
||||||
'profile', 'prompt', 'pattern', 'placeholder',
|
|
||||||
'readonly', 'rel', 'rev', 'rowspan', 'rows', 'rules', 'required',
|
|
||||||
'scheme', 'scope', 'scrolling', 'selected', 'shape', 'size', 'span', 'src', 'standby', 'start', 'style', 'summary', 'spellcheck', 'step',
|
|
||||||
'tabindex', 'target', 'text', 'title', 'type',
|
|
||||||
'usemap',
|
|
||||||
'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace',
|
|
||||||
'width'
|
|
||||||
)
|
|
||||||
),
|
|
||||||
'SYMBOLS' => array(
|
|
||||||
'/', '='
|
|
||||||
),
|
|
||||||
'CASE_SENSITIVE' => array(
|
|
||||||
GESHI_COMMENTS => false,
|
|
||||||
2 => false,
|
|
||||||
3 => false,
|
|
||||||
),
|
|
||||||
'STYLES' => array(
|
|
||||||
'KEYWORDS' => array(
|
|
||||||
2 => 'color: #000000; font-weight: bold;',
|
|
||||||
3 => 'color: #000066;'
|
|
||||||
),
|
|
||||||
'COMMENTS' => array(),
|
|
||||||
'ESCAPE_CHAR' => array(
|
|
||||||
0 => 'color: #000099; font-weight: bold;'
|
|
||||||
),
|
|
||||||
'BRACKETS' => array(
|
|
||||||
0 => 'color: #66cc66;'
|
|
||||||
),
|
|
||||||
'STRINGS' => array(
|
|
||||||
0 => 'color: #ff0000;'
|
|
||||||
),
|
|
||||||
'NUMBERS' => array(
|
|
||||||
0 => 'color: #cc66cc;'
|
|
||||||
),
|
|
||||||
'METHODS' => array(),
|
|
||||||
'SYMBOLS' => array(
|
|
||||||
0 => 'color: #66cc66;'
|
|
||||||
),
|
|
||||||
'SCRIPT' => array(
|
|
||||||
-2 => 'color: #404040;', // CDATA
|
|
||||||
-1 => 'color: #808080; font-style: italic;', // comments
|
|
||||||
0 => 'color: #00bbdd;',
|
|
||||||
1 => 'color: #ddbb00;',
|
|
||||||
2 => 'color: #009900;'
|
|
||||||
),
|
|
||||||
'REGEXPS' => array()
|
|
||||||
),
|
|
||||||
'URLS' => array(
|
|
||||||
2 => 'http://december.com/html/4/element/{FNAMEL}.html',
|
|
||||||
3 => ''
|
|
||||||
),
|
|
||||||
'OOLANG' => false,
|
|
||||||
'OBJECT_SPLITTERS' => array(),
|
|
||||||
'REGEXPS' => array(),
|
|
||||||
'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
|
|
||||||
'SCRIPT_DELIMITERS' => array(
|
|
||||||
-2 => array(
|
|
||||||
'<![CDATA[' => ']]>'
|
|
||||||
),
|
|
||||||
-1 => array(
|
|
||||||
'<!--' => '-->'
|
|
||||||
),
|
|
||||||
0 => array(
|
|
||||||
'<!DOCTYPE' => '>'
|
|
||||||
),
|
|
||||||
1 => array(
|
|
||||||
'&' => ';'
|
|
||||||
),
|
|
||||||
2 => array(
|
|
||||||
'<' => '>'
|
|
||||||
)
|
|
||||||
),
|
|
||||||
'HIGHLIGHT_STRICT_BLOCK' => array(
|
|
||||||
-2 => false,
|
|
||||||
-1 => false,
|
|
||||||
0 => false,
|
|
||||||
1 => false,
|
|
||||||
2 => true
|
|
||||||
),
|
|
||||||
'TAB_WIDTH' => 4,
|
|
||||||
'PARSER_CONTROL' => array(
|
|
||||||
'KEYWORDS' => array(
|
|
||||||
2 => array(
|
|
||||||
'DISALLOWED_BEFORE' => '(?<=<|<\/)',
|
|
||||||
'DISALLOWED_AFTER' => '(?=\s|\/|>)',
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
|
|
@ -1,975 +0,0 @@
|
||||||
<?php
|
|
||||||
/*************************************************************************************
|
|
||||||
* java.php
|
|
||||||
* --------
|
|
||||||
* Author: Nigel McNie (nigel@geshi.org)
|
|
||||||
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
|
|
||||||
* Release Version: 1.0.8.12
|
|
||||||
* Date Started: 2004/07/10
|
|
||||||
*
|
|
||||||
* Java language file for GeSHi.
|
|
||||||
*
|
|
||||||
* CHANGES
|
|
||||||
* -------
|
|
||||||
* 2008/05/25 (1.0.7.22)
|
|
||||||
* - Added highlighting of import and package directives as non-OOP
|
|
||||||
* 2005/12/28 (1.0.4)
|
|
||||||
* - Added instanceof keyword
|
|
||||||
* 2004/11/27 (1.0.3)
|
|
||||||
* - Added support for multiple object splitters
|
|
||||||
* 2004/08/05 (1.0.2)
|
|
||||||
* - Added URL support
|
|
||||||
* - Added keyword "this", as bugs in GeSHi class ironed out
|
|
||||||
* 2004/08/05 (1.0.1)
|
|
||||||
* - Added support for symbols
|
|
||||||
* - Added extra missed keywords
|
|
||||||
* 2004/07/14 (1.0.0)
|
|
||||||
* - First Release
|
|
||||||
*
|
|
||||||
* TODO (updated 2004/11/27)
|
|
||||||
* -------------------------
|
|
||||||
* * Compact the class names like the first few have been
|
|
||||||
* and eliminate repeats
|
|
||||||
*
|
|
||||||
*************************************************************************************
|
|
||||||
*
|
|
||||||
* This file is part of GeSHi.
|
|
||||||
*
|
|
||||||
* GeSHi is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* GeSHi is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with GeSHi; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
$language_data = array(
|
|
||||||
'LANG_NAME' => 'Java',
|
|
||||||
'COMMENT_SINGLE' => array(1 => '//'),
|
|
||||||
'COMMENT_MULTI' => array('/*' => '*/'),
|
|
||||||
'COMMENT_REGEXP' => array(
|
|
||||||
//Import and Package directives (Basic Support only)
|
|
||||||
2 => '/(?:(?<=import[\\n\\s])|(?<=package[\\n\\s]))[\\n\\s]*([a-zA-Z0-9_]+\\.)*([a-zA-Z0-9_]+|\*)(?=[\n\s;])/i',
|
|
||||||
// javadoc comments
|
|
||||||
3 => '#/\*\*(?![\*\/]).*\*/#sU'
|
|
||||||
),
|
|
||||||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
|
|
||||||
'QUOTEMARKS' => array("'", '"'),
|
|
||||||
'ESCAPE_CHAR' => '\\',
|
|
||||||
'KEYWORDS' => array(
|
|
||||||
1 => array(
|
|
||||||
'for', 'foreach', 'if', 'else', 'while', 'do',
|
|
||||||
'switch', 'case', 'return', 'public',
|
|
||||||
'private', 'protected', 'extends', 'break', 'class',
|
|
||||||
'new', 'try', 'catch', 'throws', 'finally', 'implements',
|
|
||||||
'interface', 'throw', 'final', 'native', 'synchronized', 'this',
|
|
||||||
'abstract', 'transient', 'instanceof', 'assert', 'continue',
|
|
||||||
'default', 'enum', 'package', 'static', 'strictfp', 'super',
|
|
||||||
'volatile', 'const', 'goto', 'import'
|
|
||||||
),
|
|
||||||
2 => array(
|
|
||||||
'null', 'false', 'true'
|
|
||||||
),
|
|
||||||
3 => array(
|
|
||||||
'AbstractAction', 'AbstractBorder', 'AbstractButton',
|
|
||||||
'AbstractCellEditor', 'AbstractCollection',
|
|
||||||
'AbstractColorChooserPanel', 'AbstractDocument',
|
|
||||||
'AbstractDocument.AttributeContext',
|
|
||||||
'AbstractDocument.Content',
|
|
||||||
'AbstractDocument.ElementEdit',
|
|
||||||
'AbstractLayoutCache',
|
|
||||||
'AbstractLayoutCache.NodeDimensions', 'AbstractList',
|
|
||||||
'AbstractListModel', 'AbstractMap',
|
|
||||||
'AbstractMethodError', 'AbstractSequentialList',
|
|
||||||
'AbstractSet', 'AbstractTableModel',
|
|
||||||
'AbstractUndoableEdit', 'AbstractWriter',
|
|
||||||
'AccessControlContext', 'AccessControlException',
|
|
||||||
'AccessController', 'AccessException', 'Accessible',
|
|
||||||
'AccessibleAction', 'AccessibleBundle',
|
|
||||||
'AccessibleComponent', 'AccessibleContext',
|
|
||||||
'AccessibleHyperlink', 'AccessibleHypertext',
|
|
||||||
'AccessibleIcon', 'AccessibleObject',
|
|
||||||
'AccessibleRelation', 'AccessibleRelationSet',
|
|
||||||
'AccessibleResourceBundle', 'AccessibleRole',
|
|
||||||
'AccessibleSelection', 'AccessibleState',
|
|
||||||
'AccessibleStateSet', 'AccessibleTable',
|
|
||||||
'AccessibleTableModelChange', 'AccessibleText',
|
|
||||||
'AccessibleValue', 'Acl', 'AclEntry',
|
|
||||||
'AclNotFoundException', 'Action', 'ActionEvent',
|
|
||||||
'ActionListener', 'ActionMap', 'ActionMapUIResource',
|
|
||||||
'Activatable', 'ActivateFailedException',
|
|
||||||
'ActivationDesc', 'ActivationException',
|
|
||||||
'ActivationGroup', 'ActivationGroupDesc',
|
|
||||||
'ActivationGroupDesc.CommandEnvironment',
|
|
||||||
'ActivationGroupID', 'ActivationID',
|
|
||||||
'ActivationInstantiator', 'ActivationMonitor',
|
|
||||||
'ActivationSystem', 'Activator', 'ActiveEvent',
|
|
||||||
'Adjustable', 'AdjustmentEvent',
|
|
||||||
'AdjustmentListener', 'Adler32', 'AffineTransform',
|
|
||||||
'AffineTransformOp', 'AlgorithmParameterGenerator',
|
|
||||||
'AlgorithmParameterGeneratorSpi',
|
|
||||||
'AlgorithmParameters', 'AlgorithmParameterSpec',
|
|
||||||
'AlgorithmParametersSpi', 'AllPermission',
|
|
||||||
'AlphaComposite', 'AlreadyBound',
|
|
||||||
'AlreadyBoundException', 'AlreadyBoundHelper',
|
|
||||||
'AlreadyBoundHolder', 'AncestorEvent',
|
|
||||||
'AncestorListener', 'Annotation', 'Any', 'AnyHolder',
|
|
||||||
'AnySeqHelper', 'AnySeqHolder', 'Applet',
|
|
||||||
'AppletContext', 'AppletInitializer', 'AppletStub',
|
|
||||||
'ApplicationException', 'Arc2D', 'Arc2D.Double',
|
|
||||||
'Arc2D.Float', 'Area', 'AreaAveragingScaleFilter',
|
|
||||||
'ARG_IN', 'ARG_INOUT', 'ARG_OUT',
|
|
||||||
'ArithmeticException', 'Array',
|
|
||||||
'ArrayIndexOutOfBoundsException', 'ArrayList',
|
|
||||||
'Arrays', 'ArrayStoreException', 'AsyncBoxView',
|
|
||||||
'Attribute', 'AttributedCharacterIterator',
|
|
||||||
'AttributedCharacterIterator.Attribute',
|
|
||||||
'AttributedString', 'AttributeInUseException',
|
|
||||||
'AttributeList', 'AttributeModificationException',
|
|
||||||
'Attributes', 'Attributes.Name', 'AttributeSet',
|
|
||||||
'AttributeSet.CharacterAttribute',
|
|
||||||
'AttributeSet.ColorAttribute',
|
|
||||||
'AttributeSet.FontAttribute',
|
|
||||||
'AttributeSet.ParagraphAttribute', 'AudioClip',
|
|
||||||
'AudioFileFormat', 'AudioFileFormat.Type',
|
|
||||||
'AudioFileReader', 'AudioFileWriter', 'AudioFormat',
|
|
||||||
'AudioFormat.Encoding', 'AudioInputStream',
|
|
||||||
'AudioPermission', 'AudioSystem',
|
|
||||||
'AuthenticationException',
|
|
||||||
'AuthenticationNotSupportedException',
|
|
||||||
'Authenticator', 'Autoscroll', 'AWTError',
|
|
||||||
'AWTEvent', 'AWTEventListener',
|
|
||||||
'AWTEventMulticaster', 'AWTException',
|
|
||||||
'AWTPermission', 'BadKind', 'BadLocationException',
|
|
||||||
'BAD_CONTEXT', 'BAD_INV_ORDER', 'BAD_OPERATION',
|
|
||||||
'BAD_PARAM', 'BAD_POLICY', 'BAD_POLICY_TYPE',
|
|
||||||
'BAD_POLICY_VALUE', 'BAD_TYPECODE', 'BandCombineOp',
|
|
||||||
'BandedSampleModel', 'BasicArrowButton',
|
|
||||||
'BasicAttribute', 'BasicAttributes', 'BasicBorders',
|
|
||||||
'BasicBorders.ButtonBorder',
|
|
||||||
'BasicBorders.FieldBorder',
|
|
||||||
'BasicBorders.MarginBorder',
|
|
||||||
'BasicBorders.MenuBarBorder',
|
|
||||||
'BasicBorders.RadioButtonBorder',
|
|
||||||
'BasicBorders.SplitPaneBorder',
|
|
||||||
'BasicBorders.ToggleButtonBorder',
|
|
||||||
'BasicButtonListener', 'BasicButtonUI',
|
|
||||||
'BasicCheckBoxMenuItemUI', 'BasicCheckBoxUI',
|
|
||||||
'BasicColorChooserUI', 'BasicComboBoxEditor',
|
|
||||||
'BasicComboBoxEditor.UIResource',
|
|
||||||
'BasicComboBoxRenderer',
|
|
||||||
'BasicComboBoxRenderer.UIResource',
|
|
||||||
'BasicComboBoxUI', 'BasicComboPopup',
|
|
||||||
'BasicDesktopIconUI', 'BasicDesktopPaneUI',
|
|
||||||
'BasicDirectoryModel', 'BasicEditorPaneUI',
|
|
||||||
'BasicFileChooserUI', 'BasicGraphicsUtils',
|
|
||||||
'BasicHTML', 'BasicIconFactory',
|
|
||||||
'BasicInternalFrameTitlePane',
|
|
||||||
'BasicInternalFrameUI', 'BasicLabelUI',
|
|
||||||
'BasicListUI', 'BasicLookAndFeel', 'BasicMenuBarUI',
|
|
||||||
'BasicMenuItemUI', 'BasicMenuUI',
|
|
||||||
'BasicOptionPaneUI',
|
|
||||||
'BasicOptionPaneUI.ButtonAreaLayout', 'BasicPanelUI',
|
|
||||||
'BasicPasswordFieldUI', 'BasicPermission',
|
|
||||||
'BasicPopupMenuSeparatorUI', 'BasicPopupMenuUI',
|
|
||||||
'BasicProgressBarUI', 'BasicRadioButtonMenuItemUI',
|
|
||||||
'BasicRadioButtonUI', 'BasicRootPaneUI',
|
|
||||||
'BasicScrollBarUI', 'BasicScrollPaneUI',
|
|
||||||
'BasicSeparatorUI', 'BasicSliderUI',
|
|
||||||
'BasicSplitPaneDivider', 'BasicSplitPaneUI',
|
|
||||||
'BasicStroke', 'BasicTabbedPaneUI',
|
|
||||||
'BasicTableHeaderUI', 'BasicTableUI',
|
|
||||||
'BasicTextAreaUI', 'BasicTextFieldUI',
|
|
||||||
'BasicTextPaneUI', 'BasicTextUI',
|
|
||||||
'BasicTextUI.BasicCaret',
|
|
||||||
'BasicTextUI.BasicHighlighter',
|
|
||||||
'BasicToggleButtonUI', 'BasicToolBarSeparatorUI',
|
|
||||||
'BasicToolBarUI', 'BasicToolTipUI', 'BasicTreeUI',
|
|
||||||
'BasicViewportUI', 'BatchUpdateException',
|
|
||||||
'BeanContext', 'BeanContextChild',
|
|
||||||
'BeanContextChildComponentProxy',
|
|
||||||
'BeanContextChildSupport',
|
|
||||||
'BeanContextContainerProxy', 'BeanContextEvent',
|
|
||||||
'BeanContextMembershipEvent',
|
|
||||||
'BeanContextMembershipListener', 'BeanContextProxy',
|
|
||||||
'BeanContextServiceAvailableEvent',
|
|
||||||
'BeanContextServiceProvider',
|
|
||||||
'BeanContextServiceProviderBeanInfo',
|
|
||||||
'BeanContextServiceRevokedEvent',
|
|
||||||
'BeanContextServiceRevokedListener',
|
|
||||||
'BeanContextServices', 'BeanContextServicesListener',
|
|
||||||
'BeanContextServicesSupport',
|
|
||||||
'BeanContextServicesSupport.BCSSServiceProvider',
|
|
||||||
'BeanContextSupport',
|
|
||||||
'BeanContextSupport.BCSIterator', 'BeanDescriptor',
|
|
||||||
'BeanInfo', 'Beans', 'BevelBorder', 'BigDecimal',
|
|
||||||
'BigInteger', 'BinaryRefAddr', 'BindException',
|
|
||||||
'Binding', 'BindingHelper', 'BindingHolder',
|
|
||||||
'BindingIterator', 'BindingIteratorHelper',
|
|
||||||
'BindingIteratorHolder', 'BindingIteratorOperations',
|
|
||||||
'BindingListHelper', 'BindingListHolder',
|
|
||||||
'BindingType', 'BindingTypeHelper',
|
|
||||||
'BindingTypeHolder', 'BitSet', 'Blob', 'BlockView',
|
|
||||||
'Book', 'Boolean', 'BooleanControl',
|
|
||||||
'BooleanControl.Type', 'BooleanHolder',
|
|
||||||
'BooleanSeqHelper', 'BooleanSeqHolder', 'Border',
|
|
||||||
'BorderFactory', 'BorderLayout', 'BorderUIResource',
|
|
||||||
'BorderUIResource.BevelBorderUIResource',
|
|
||||||
'BorderUIResource.CompoundBorderUIResource',
|
|
||||||
'BorderUIResource.EmptyBorderUIResource',
|
|
||||||
'BorderUIResource.EtchedBorderUIResource',
|
|
||||||
'BorderUIResource.LineBorderUIResource',
|
|
||||||
'BorderUIResource.MatteBorderUIResource',
|
|
||||||
'BorderUIResource.TitledBorderUIResource',
|
|
||||||
'BoundedRangeModel', 'Bounds', 'Box', 'Box.Filler',
|
|
||||||
'BoxedValueHelper', 'BoxLayout', 'BoxView',
|
|
||||||
'BreakIterator', 'BufferedImage',
|
|
||||||
'BufferedImageFilter', 'BufferedImageOp',
|
|
||||||
'BufferedInputStream', 'BufferedOutputStream',
|
|
||||||
'BufferedReader', 'BufferedWriter', 'Button',
|
|
||||||
'ButtonGroup', 'ButtonModel', 'ButtonUI', 'Byte',
|
|
||||||
'ByteArrayInputStream', 'ByteArrayOutputStream',
|
|
||||||
'ByteHolder', 'ByteLookupTable', 'Calendar',
|
|
||||||
'CallableStatement', 'CannotProceed',
|
|
||||||
'CannotProceedException', 'CannotProceedHelper',
|
|
||||||
'CannotProceedHolder', 'CannotRedoException',
|
|
||||||
'CannotUndoException', 'Canvas', 'CardLayout',
|
|
||||||
'Caret', 'CaretEvent', 'CaretListener', 'CellEditor',
|
|
||||||
'CellEditorListener', 'CellRendererPane',
|
|
||||||
'Certificate', 'Certificate.CertificateRep',
|
|
||||||
'CertificateEncodingException',
|
|
||||||
'CertificateException',
|
|
||||||
'CertificateExpiredException', 'CertificateFactory',
|
|
||||||
'CertificateFactorySpi',
|
|
||||||
'CertificateNotYetValidException',
|
|
||||||
'CertificateParsingException',
|
|
||||||
'ChangedCharSetException', 'ChangeEvent',
|
|
||||||
'ChangeListener', 'Character', 'Character.Subset',
|
|
||||||
'Character.UnicodeBlock', 'CharacterIterator',
|
|
||||||
'CharArrayReader', 'CharArrayWriter',
|
|
||||||
'CharConversionException', 'CharHolder',
|
|
||||||
'CharSeqHelper', 'CharSeqHolder', 'Checkbox',
|
|
||||||
'CheckboxGroup', 'CheckboxMenuItem',
|
|
||||||
'CheckedInputStream', 'CheckedOutputStream',
|
|
||||||
'Checksum', 'Choice', 'ChoiceFormat', 'Class',
|
|
||||||
'ClassCastException', 'ClassCircularityError',
|
|
||||||
'ClassDesc', 'ClassFormatError', 'ClassLoader',
|
|
||||||
'ClassNotFoundException', 'Clip', 'Clipboard',
|
|
||||||
'ClipboardOwner', 'Clob', 'Cloneable',
|
|
||||||
'CloneNotSupportedException', 'CMMException',
|
|
||||||
'CodeSource', 'CollationElementIterator',
|
|
||||||
'CollationKey', 'Collator', 'Collection',
|
|
||||||
'Collections', 'Color',
|
|
||||||
'ColorChooserComponentFactory', 'ColorChooserUI',
|
|
||||||
'ColorConvertOp', 'ColorModel',
|
|
||||||
'ColorSelectionModel', 'ColorSpace',
|
|
||||||
'ColorUIResource', 'ComboBoxEditor', 'ComboBoxModel',
|
|
||||||
'ComboBoxUI', 'ComboPopup', 'CommunicationException',
|
|
||||||
'COMM_FAILURE', 'Comparable', 'Comparator',
|
|
||||||
'Compiler', 'CompletionStatus',
|
|
||||||
'CompletionStatusHelper', 'Component',
|
|
||||||
'ComponentAdapter', 'ComponentColorModel',
|
|
||||||
'ComponentEvent', 'ComponentInputMap',
|
|
||||||
'ComponentInputMapUIResource', 'ComponentListener',
|
|
||||||
'ComponentOrientation', 'ComponentSampleModel',
|
|
||||||
'ComponentUI', 'ComponentView', 'Composite',
|
|
||||||
'CompositeContext', 'CompositeName', 'CompositeView',
|
|
||||||
'CompoundBorder', 'CompoundControl',
|
|
||||||
'CompoundControl.Type', 'CompoundEdit',
|
|
||||||
'CompoundName', 'ConcurrentModificationException',
|
|
||||||
'ConfigurationException', 'ConnectException',
|
|
||||||
'ConnectIOException', 'Connection', 'Constructor', 'Container',
|
|
||||||
'ContainerAdapter', 'ContainerEvent',
|
|
||||||
'ContainerListener', 'ContentHandler',
|
|
||||||
'ContentHandlerFactory', 'ContentModel', 'Context',
|
|
||||||
'ContextList', 'ContextNotEmptyException',
|
|
||||||
'ContextualRenderedImageFactory', 'Control',
|
|
||||||
'Control.Type', 'ControlFactory',
|
|
||||||
'ControllerEventListener', 'ConvolveOp', 'CRC32',
|
|
||||||
'CRL', 'CRLException', 'CropImageFilter', 'CSS',
|
|
||||||
'CSS.Attribute', 'CTX_RESTRICT_SCOPE',
|
|
||||||
'CubicCurve2D', 'CubicCurve2D.Double',
|
|
||||||
'CubicCurve2D.Float', 'Current', 'CurrentHelper',
|
|
||||||
'CurrentHolder', 'CurrentOperations', 'Cursor',
|
|
||||||
'Customizer', 'CustomMarshal', 'CustomValue',
|
|
||||||
'DatabaseMetaData', 'DataBuffer', 'DataBufferByte',
|
|
||||||
'DataBufferInt', 'DataBufferShort',
|
|
||||||
'DataBufferUShort', 'DataFlavor',
|
|
||||||
'DataFormatException', 'DatagramPacket',
|
|
||||||
'DatagramSocket', 'DatagramSocketImpl',
|
|
||||||
'DatagramSocketImplFactory', 'DataInput',
|
|
||||||
'DataInputStream', 'DataLine', 'DataLine.Info',
|
|
||||||
'DataOutput', 'DataOutputStream',
|
|
||||||
'DataTruncation', 'DATA_CONVERSION', 'Date',
|
|
||||||
'DateFormat', 'DateFormatSymbols', 'DebugGraphics',
|
|
||||||
'DecimalFormat', 'DecimalFormatSymbols',
|
|
||||||
'DefaultBoundedRangeModel', 'DefaultButtonModel',
|
|
||||||
'DefaultCaret', 'DefaultCellEditor',
|
|
||||||
'DefaultColorSelectionModel', 'DefaultComboBoxModel',
|
|
||||||
'DefaultDesktopManager', 'DefaultEditorKit',
|
|
||||||
'DefaultEditorKit.BeepAction',
|
|
||||||
'DefaultEditorKit.CopyAction',
|
|
||||||
'DefaultEditorKit.CutAction',
|
|
||||||
'DefaultEditorKit.DefaultKeyTypedAction',
|
|
||||||
'DefaultEditorKit.InsertBreakAction',
|
|
||||||
'DefaultEditorKit.InsertContentAction',
|
|
||||||
'DefaultEditorKit.InsertTabAction',
|
|
||||||
'DefaultEditorKit.PasteAction,',
|
|
||||||
'DefaultFocusManager', 'DefaultHighlighter',
|
|
||||||
'DefaultHighlighter.DefaultHighlightPainter',
|
|
||||||
'DefaultListCellRenderer',
|
|
||||||
'DefaultListCellRenderer.UIResource',
|
|
||||||
'DefaultListModel', 'DefaultListSelectionModel',
|
|
||||||
'DefaultMenuLayout', 'DefaultMetalTheme',
|
|
||||||
'DefaultMutableTreeNode',
|
|
||||||
'DefaultSingleSelectionModel',
|
|
||||||
'DefaultStyledDocument',
|
|
||||||
'DefaultStyledDocument.AttributeUndoableEdit',
|
|
||||||
'DefaultStyledDocument.ElementSpec',
|
|
||||||
'DefaultTableCellRenderer',
|
|
||||||
'DefaultTableCellRenderer.UIResource',
|
|
||||||
'DefaultTableColumnModel', 'DefaultTableModel',
|
|
||||||
'DefaultTextUI', 'DefaultTreeCellEditor',
|
|
||||||
'DefaultTreeCellRenderer', 'DefaultTreeModel',
|
|
||||||
'DefaultTreeSelectionModel', 'DefinitionKind',
|
|
||||||
'DefinitionKindHelper', 'Deflater',
|
|
||||||
'DeflaterOutputStream', 'Delegate', 'DesignMode',
|
|
||||||
'DesktopIconUI', 'DesktopManager', 'DesktopPaneUI',
|
|
||||||
'DGC', 'Dialog', 'Dictionary', 'DigestException',
|
|
||||||
'DigestInputStream', 'DigestOutputStream',
|
|
||||||
'Dimension', 'Dimension2D', 'DimensionUIResource',
|
|
||||||
'DirContext', 'DirectColorModel', 'DirectoryManager',
|
|
||||||
'DirObjectFactory', 'DirStateFactory',
|
|
||||||
'DirStateFactory.Result', 'DnDConstants', 'Document',
|
|
||||||
'DocumentEvent', 'DocumentEvent.ElementChange',
|
|
||||||
'DocumentEvent.EventType', 'DocumentListener',
|
|
||||||
'DocumentParser', 'DomainCombiner', 'DomainManager',
|
|
||||||
'DomainManagerOperations', 'Double', 'DoubleHolder',
|
|
||||||
'DoubleSeqHelper', 'DoubleSeqHolder',
|
|
||||||
'DragGestureEvent', 'DragGestureListener',
|
|
||||||
'DragGestureRecognizer', 'DragSource',
|
|
||||||
'DragSourceContext', 'DragSourceDragEvent',
|
|
||||||
'DragSourceDropEvent', 'DragSourceEvent',
|
|
||||||
'DragSourceListener', 'Driver', 'DriverManager',
|
|
||||||
'DriverPropertyInfo', 'DropTarget',
|
|
||||||
'DropTarget.DropTargetAutoScroller',
|
|
||||||
'DropTargetContext', 'DropTargetDragEvent',
|
|
||||||
'DropTargetDropEvent', 'DropTargetEvent',
|
|
||||||
'DropTargetListener', 'DSAKey',
|
|
||||||
'DSAKeyPairGenerator', 'DSAParameterSpec',
|
|
||||||
'DSAParams', 'DSAPrivateKey', 'DSAPrivateKeySpec',
|
|
||||||
'DSAPublicKey', 'DSAPublicKeySpec', 'DTD',
|
|
||||||
'DTDConstants', 'DynamicImplementation', 'DynAny',
|
|
||||||
'DynArray', 'DynEnum', 'DynFixed', 'DynSequence',
|
|
||||||
'DynStruct', 'DynUnion', 'DynValue', 'EditorKit',
|
|
||||||
'Element', 'ElementIterator', 'Ellipse2D',
|
|
||||||
'Ellipse2D.Double', 'Ellipse2D.Float', 'EmptyBorder',
|
|
||||||
'EmptyStackException', 'EncodedKeySpec', 'Entity',
|
|
||||||
'EnumControl', 'EnumControl.Type', 'Enumeration',
|
|
||||||
'Environment', 'EOFException', 'Error',
|
|
||||||
'EtchedBorder', 'Event', 'EventContext',
|
|
||||||
'EventDirContext', 'EventListener',
|
|
||||||
'EventListenerList', 'EventObject', 'EventQueue',
|
|
||||||
'EventSetDescriptor', 'Exception',
|
|
||||||
'ExceptionInInitializerError', 'ExceptionList',
|
|
||||||
'ExpandVetoException', 'ExportException',
|
|
||||||
'ExtendedRequest', 'ExtendedResponse',
|
|
||||||
'Externalizable', 'FeatureDescriptor', 'Field',
|
|
||||||
'FieldNameHelper', 'FieldPosition', 'FieldView',
|
|
||||||
'File', 'FileChooserUI', 'FileDescriptor',
|
|
||||||
'FileDialog', 'FileFilter',
|
|
||||||
'FileInputStream', 'FilenameFilter', 'FileNameMap',
|
|
||||||
'FileNotFoundException', 'FileOutputStream',
|
|
||||||
'FilePermission', 'FileReader', 'FileSystemView',
|
|
||||||
'FileView', 'FileWriter', 'FilteredImageSource',
|
|
||||||
'FilterInputStream', 'FilterOutputStream',
|
|
||||||
'FilterReader', 'FilterWriter',
|
|
||||||
'FixedHeightLayoutCache', 'FixedHolder',
|
|
||||||
'FlatteningPathIterator', 'FlavorMap', 'Float',
|
|
||||||
'FloatControl', 'FloatControl.Type', 'FloatHolder',
|
|
||||||
'FloatSeqHelper', 'FloatSeqHolder', 'FlowLayout',
|
|
||||||
'FlowView', 'FlowView.FlowStrategy', 'FocusAdapter',
|
|
||||||
'FocusEvent', 'FocusListener', 'FocusManager',
|
|
||||||
'Font', 'FontFormatException', 'FontMetrics',
|
|
||||||
'FontRenderContext', 'FontUIResource', 'Format',
|
|
||||||
'FormatConversionProvider', 'FormView', 'Frame',
|
|
||||||
'FREE_MEM', 'GapContent', 'GeneralPath',
|
|
||||||
'GeneralSecurityException', 'GlyphJustificationInfo',
|
|
||||||
'GlyphMetrics', 'GlyphVector', 'GlyphView',
|
|
||||||
'GlyphView.GlyphPainter', 'GradientPaint',
|
|
||||||
'GraphicAttribute', 'Graphics', 'Graphics2D',
|
|
||||||
'GraphicsConfigTemplate', 'GraphicsConfiguration',
|
|
||||||
'GraphicsDevice', 'GraphicsEnvironment',
|
|
||||||
'GrayFilter', 'GregorianCalendar',
|
|
||||||
'GridBagConstraints', 'GridBagLayout', 'GridLayout',
|
|
||||||
'Group', 'Guard', 'GuardedObject', 'GZIPInputStream',
|
|
||||||
'GZIPOutputStream', 'HasControls', 'HashMap',
|
|
||||||
'HashSet', 'Hashtable', 'HierarchyBoundsAdapter',
|
|
||||||
'HierarchyBoundsListener', 'HierarchyEvent',
|
|
||||||
'HierarchyListener', 'Highlighter',
|
|
||||||
'Highlighter.Highlight',
|
|
||||||
'Highlighter.HighlightPainter', 'HTML',
|
|
||||||
'HTML.Attribute', 'HTML.Tag', 'HTML.UnknownTag',
|
|
||||||
'HTMLDocument', 'HTMLDocument.Iterator',
|
|
||||||
'HTMLEditorKit', 'HTMLEditorKit.HTMLFactory',
|
|
||||||
'HTMLEditorKit.HTMLTextAction',
|
|
||||||
'HTMLEditorKit.InsertHTMLTextAction',
|
|
||||||
'HTMLEditorKit.LinkController',
|
|
||||||
'HTMLEditorKit.Parser',
|
|
||||||
'HTMLEditorKit.ParserCallback',
|
|
||||||
'HTMLFrameHyperlinkEvent', 'HTMLWriter',
|
|
||||||
'HttpURLConnection', 'HyperlinkEvent',
|
|
||||||
'HyperlinkEvent.EventType', 'HyperlinkListener',
|
|
||||||
'ICC_ColorSpace', 'ICC_Profile', 'ICC_ProfileGray',
|
|
||||||
'ICC_ProfileRGB', 'Icon', 'IconUIResource',
|
|
||||||
'IconView', 'IdentifierHelper', 'Identity',
|
|
||||||
'IdentityScope', 'IDLEntity', 'IDLType',
|
|
||||||
'IDLTypeHelper', 'IDLTypeOperations',
|
|
||||||
'IllegalAccessError', 'IllegalAccessException',
|
|
||||||
'IllegalArgumentException',
|
|
||||||
'IllegalComponentStateException',
|
|
||||||
'IllegalMonitorStateException',
|
|
||||||
'IllegalPathStateException', 'IllegalStateException',
|
|
||||||
'IllegalThreadStateException', 'Image',
|
|
||||||
'ImageConsumer', 'ImageFilter',
|
|
||||||
'ImageGraphicAttribute', 'ImageIcon',
|
|
||||||
'ImageObserver', 'ImageProducer',
|
|
||||||
'ImagingOpException', 'IMP_LIMIT',
|
|
||||||
'IncompatibleClassChangeError',
|
|
||||||
'InconsistentTypeCode', 'IndexColorModel',
|
|
||||||
'IndexedPropertyDescriptor',
|
|
||||||
'IndexOutOfBoundsException', 'IndirectionException',
|
|
||||||
'InetAddress', 'Inflater', 'InflaterInputStream',
|
|
||||||
'InheritableThreadLocal', 'InitialContext',
|
|
||||||
'InitialContextFactory',
|
|
||||||
'InitialContextFactoryBuilder', 'InitialDirContext',
|
|
||||||
'INITIALIZE', 'Initializer', 'InitialLdapContext',
|
|
||||||
'InlineView', 'InputContext', 'InputEvent',
|
|
||||||
'InputMap', 'InputMapUIResource', 'InputMethod',
|
|
||||||
'InputMethodContext', 'InputMethodDescriptor',
|
|
||||||
'InputMethodEvent', 'InputMethodHighlight',
|
|
||||||
'InputMethodListener', 'InputMethodRequests',
|
|
||||||
'InputStream',
|
|
||||||
'InputStreamReader', 'InputSubset', 'InputVerifier',
|
|
||||||
'Insets', 'InsetsUIResource', 'InstantiationError',
|
|
||||||
'InstantiationException', 'Instrument',
|
|
||||||
'InsufficientResourcesException', 'Integer',
|
|
||||||
'INTERNAL', 'InternalError', 'InternalFrameAdapter',
|
|
||||||
'InternalFrameEvent', 'InternalFrameListener',
|
|
||||||
'InternalFrameUI', 'InterruptedException',
|
|
||||||
'InterruptedIOException',
|
|
||||||
'InterruptedNamingException', 'INTF_REPOS',
|
|
||||||
'IntHolder', 'IntrospectionException',
|
|
||||||
'Introspector', 'Invalid',
|
|
||||||
'InvalidAlgorithmParameterException',
|
|
||||||
'InvalidAttributeIdentifierException',
|
|
||||||
'InvalidAttributesException',
|
|
||||||
'InvalidAttributeValueException',
|
|
||||||
'InvalidClassException',
|
|
||||||
'InvalidDnDOperationException',
|
|
||||||
'InvalidKeyException', 'InvalidKeySpecException',
|
|
||||||
'InvalidMidiDataException', 'InvalidName',
|
|
||||||
'InvalidNameException',
|
|
||||||
'InvalidNameHelper', 'InvalidNameHolder',
|
|
||||||
'InvalidObjectException',
|
|
||||||
'InvalidParameterException',
|
|
||||||
'InvalidParameterSpecException',
|
|
||||||
'InvalidSearchControlsException',
|
|
||||||
'InvalidSearchFilterException', 'InvalidSeq',
|
|
||||||
'InvalidTransactionException', 'InvalidValue',
|
|
||||||
'INVALID_TRANSACTION', 'InvocationEvent',
|
|
||||||
'InvocationHandler', 'InvocationTargetException',
|
|
||||||
'InvokeHandler', 'INV_FLAG', 'INV_IDENT',
|
|
||||||
'INV_OBJREF', 'INV_POLICY', 'IOException',
|
|
||||||
'IRObject', 'IRObjectOperations', 'IstringHelper',
|
|
||||||
'ItemEvent', 'ItemListener', 'ItemSelectable',
|
|
||||||
'Iterator', 'JApplet', 'JarEntry', 'JarException',
|
|
||||||
'JarFile', 'JarInputStream', 'JarOutputStream',
|
|
||||||
'JarURLConnection', 'JButton', 'JCheckBox',
|
|
||||||
'JCheckBoxMenuItem', 'JColorChooser', 'JComboBox',
|
|
||||||
'JComboBox.KeySelectionManager', 'JComponent',
|
|
||||||
'JDesktopPane', 'JDialog', 'JEditorPane',
|
|
||||||
'JFileChooser', 'JFrame', 'JInternalFrame',
|
|
||||||
'JInternalFrame.JDesktopIcon', 'JLabel',
|
|
||||||
'JLayeredPane', 'JList', 'JMenu', 'JMenuBar',
|
|
||||||
'JMenuItem', 'JobAttributes',
|
|
||||||
'JobAttributes.DefaultSelectionType',
|
|
||||||
'JobAttributes.DestinationType',
|
|
||||||
'JobAttributes.DialogType',
|
|
||||||
'JobAttributes.MultipleDocumentHandlingType',
|
|
||||||
'JobAttributes.SidesType', 'JOptionPane', 'JPanel',
|
|
||||||
'JPasswordField', 'JPopupMenu',
|
|
||||||
'JPopupMenu.Separator', 'JProgressBar',
|
|
||||||
'JRadioButton', 'JRadioButtonMenuItem', 'JRootPane',
|
|
||||||
'JScrollBar', 'JScrollPane', 'JSeparator', 'JSlider',
|
|
||||||
'JSplitPane', 'JTabbedPane', 'JTable',
|
|
||||||
'JTableHeader', 'JTextArea', 'JTextComponent',
|
|
||||||
'JTextComponent.KeyBinding', 'JTextField',
|
|
||||||
'JTextPane', 'JToggleButton',
|
|
||||||
'JToggleButton.ToggleButtonModel', 'JToolBar',
|
|
||||||
'JToolBar.Separator', 'JToolTip', 'JTree',
|
|
||||||
'JTree.DynamicUtilTreeNode',
|
|
||||||
'JTree.EmptySelectionModel', 'JViewport', 'JWindow',
|
|
||||||
'Kernel', 'Key', 'KeyAdapter', 'KeyEvent',
|
|
||||||
'KeyException', 'KeyFactory', 'KeyFactorySpi',
|
|
||||||
'KeyListener', 'KeyManagementException', 'Keymap',
|
|
||||||
'KeyPair', 'KeyPairGenerator', 'KeyPairGeneratorSpi',
|
|
||||||
'KeySpec', 'KeyStore', 'KeyStoreException',
|
|
||||||
'KeyStoreSpi', 'KeyStroke', 'Label', 'LabelUI',
|
|
||||||
'LabelView', 'LastOwnerException',
|
|
||||||
'LayeredHighlighter',
|
|
||||||
'LayeredHighlighter.LayerPainter', 'LayoutManager',
|
|
||||||
'LayoutManager2', 'LayoutQueue', 'LdapContext',
|
|
||||||
'LdapReferralException', 'Lease',
|
|
||||||
'LimitExceededException', 'Line', 'Line.Info',
|
|
||||||
'Line2D', 'Line2D.Double', 'Line2D.Float',
|
|
||||||
'LineBorder', 'LineBreakMeasurer', 'LineEvent',
|
|
||||||
'LineEvent.Type', 'LineListener', 'LineMetrics',
|
|
||||||
'LineNumberInputStream', 'LineNumberReader',
|
|
||||||
'LineUnavailableException', 'LinkageError',
|
|
||||||
'LinkedList', 'LinkException', 'LinkLoopException',
|
|
||||||
'LinkRef', 'List', 'ListCellRenderer',
|
|
||||||
'ListDataEvent', 'ListDataListener', 'ListIterator',
|
|
||||||
'ListModel', 'ListResourceBundle',
|
|
||||||
'ListSelectionEvent', 'ListSelectionListener',
|
|
||||||
'ListSelectionModel', 'ListUI', 'ListView',
|
|
||||||
'LoaderHandler', 'Locale', 'LocateRegistry',
|
|
||||||
'LogStream', 'Long', 'LongHolder',
|
|
||||||
'LongLongSeqHelper', 'LongLongSeqHolder',
|
|
||||||
'LongSeqHelper', 'LongSeqHolder', 'LookAndFeel',
|
|
||||||
'LookupOp', 'LookupTable', 'MalformedLinkException',
|
|
||||||
'MalformedURLException', 'Manifest', 'Map',
|
|
||||||
'Map.Entry', 'MARSHAL', 'MarshalException',
|
|
||||||
'MarshalledObject', 'Math', 'MatteBorder',
|
|
||||||
'MediaTracker', 'Member', 'MemoryImageSource',
|
|
||||||
'Menu', 'MenuBar', 'MenuBarUI', 'MenuComponent',
|
|
||||||
'MenuContainer', 'MenuDragMouseEvent',
|
|
||||||
'MenuDragMouseListener', 'MenuElement', 'MenuEvent',
|
|
||||||
'MenuItem', 'MenuItemUI', 'MenuKeyEvent',
|
|
||||||
'MenuKeyListener', 'MenuListener',
|
|
||||||
'MenuSelectionManager', 'MenuShortcut',
|
|
||||||
'MessageDigest', 'MessageDigestSpi', 'MessageFormat',
|
|
||||||
'MetaEventListener', 'MetalBorders',
|
|
||||||
'MetalBorders.ButtonBorder',
|
|
||||||
'MetalBorders.Flush3DBorder',
|
|
||||||
'MetalBorders.InternalFrameBorder',
|
|
||||||
'MetalBorders.MenuBarBorder',
|
|
||||||
'MetalBorders.MenuItemBorder',
|
|
||||||
'MetalBorders.OptionDialogBorder',
|
|
||||||
'MetalBorders.PaletteBorder',
|
|
||||||
'MetalBorders.PopupMenuBorder',
|
|
||||||
'MetalBorders.RolloverButtonBorder',
|
|
||||||
'MetalBorders.ScrollPaneBorder',
|
|
||||||
'MetalBorders.TableHeaderBorder',
|
|
||||||
'MetalBorders.TextFieldBorder',
|
|
||||||
'MetalBorders.ToggleButtonBorder',
|
|
||||||
'MetalBorders.ToolBarBorder', 'MetalButtonUI',
|
|
||||||
'MetalCheckBoxIcon', 'MetalCheckBoxUI',
|
|
||||||
'MetalComboBoxButton', 'MetalComboBoxEditor',
|
|
||||||
'MetalComboBoxEditor.UIResource',
|
|
||||||
'MetalComboBoxIcon', 'MetalComboBoxUI',
|
|
||||||
'MetalDesktopIconUI', 'MetalFileChooserUI',
|
|
||||||
'MetalIconFactory', 'MetalIconFactory.FileIcon16',
|
|
||||||
'MetalIconFactory.FolderIcon16',
|
|
||||||
'MetalIconFactory.PaletteCloseIcon',
|
|
||||||
'MetalIconFactory.TreeControlIcon',
|
|
||||||
'MetalIconFactory.TreeFolderIcon',
|
|
||||||
'MetalIconFactory.TreeLeafIcon',
|
|
||||||
'MetalInternalFrameTitlePane',
|
|
||||||
'MetalInternalFrameUI', 'MetalLabelUI',
|
|
||||||
'MetalLookAndFeel', 'MetalPopupMenuSeparatorUI',
|
|
||||||
'MetalProgressBarUI', 'MetalRadioButtonUI',
|
|
||||||
'MetalScrollBarUI', 'MetalScrollButton',
|
|
||||||
'MetalScrollPaneUI', 'MetalSeparatorUI',
|
|
||||||
'MetalSliderUI', 'MetalSplitPaneUI',
|
|
||||||
'MetalTabbedPaneUI', 'MetalTextFieldUI',
|
|
||||||
'MetalTheme', 'MetalToggleButtonUI',
|
|
||||||
'MetalToolBarUI', 'MetalToolTipUI', 'MetalTreeUI',
|
|
||||||
'MetaMessage', 'Method', 'MethodDescriptor',
|
|
||||||
'MidiChannel', 'MidiDevice', 'MidiDevice.Info',
|
|
||||||
'MidiDeviceProvider', 'MidiEvent', 'MidiFileFormat',
|
|
||||||
'MidiFileReader', 'MidiFileWriter', 'MidiMessage',
|
|
||||||
'MidiSystem', 'MidiUnavailableException',
|
|
||||||
'MimeTypeParseException', 'MinimalHTMLWriter',
|
|
||||||
'MissingResourceException', 'Mixer', 'Mixer.Info',
|
|
||||||
'MixerProvider', 'ModificationItem', 'Modifier',
|
|
||||||
'MouseAdapter', 'MouseDragGestureRecognizer',
|
|
||||||
'MouseEvent', 'MouseInputAdapter',
|
|
||||||
'MouseInputListener', 'MouseListener',
|
|
||||||
'MouseMotionAdapter', 'MouseMotionListener',
|
|
||||||
'MultiButtonUI', 'MulticastSocket',
|
|
||||||
'MultiColorChooserUI', 'MultiComboBoxUI',
|
|
||||||
'MultiDesktopIconUI', 'MultiDesktopPaneUI',
|
|
||||||
'MultiFileChooserUI', 'MultiInternalFrameUI',
|
|
||||||
'MultiLabelUI', 'MultiListUI', 'MultiLookAndFeel',
|
|
||||||
'MultiMenuBarUI', 'MultiMenuItemUI',
|
|
||||||
'MultiOptionPaneUI', 'MultiPanelUI',
|
|
||||||
'MultiPixelPackedSampleModel', 'MultipleMaster',
|
|
||||||
'MultiPopupMenuUI', 'MultiProgressBarUI',
|
|
||||||
'MultiScrollBarUI', 'MultiScrollPaneUI',
|
|
||||||
'MultiSeparatorUI', 'MultiSliderUI',
|
|
||||||
'MultiSplitPaneUI', 'MultiTabbedPaneUI',
|
|
||||||
'MultiTableHeaderUI', 'MultiTableUI', 'MultiTextUI',
|
|
||||||
'MultiToolBarUI', 'MultiToolTipUI', 'MultiTreeUI',
|
|
||||||
'MultiViewportUI', 'MutableAttributeSet',
|
|
||||||
'MutableComboBoxModel', 'MutableTreeNode', 'Name',
|
|
||||||
'NameAlreadyBoundException', 'NameClassPair',
|
|
||||||
'NameComponent', 'NameComponentHelper',
|
|
||||||
'NameComponentHolder', 'NamedValue', 'NameHelper',
|
|
||||||
'NameHolder', 'NameNotFoundException', 'NameParser',
|
|
||||||
'NamespaceChangeListener', 'NameValuePair',
|
|
||||||
'NameValuePairHelper', 'Naming', 'NamingContext',
|
|
||||||
'NamingContextHelper', 'NamingContextHolder',
|
|
||||||
'NamingContextOperations', 'NamingEnumeration',
|
|
||||||
'NamingEvent', 'NamingException',
|
|
||||||
'NamingExceptionEvent', 'NamingListener',
|
|
||||||
'NamingManager', 'NamingSecurityException',
|
|
||||||
'NegativeArraySizeException', 'NetPermission',
|
|
||||||
'NoClassDefFoundError', 'NoInitialContextException',
|
|
||||||
'NoninvertibleTransformException',
|
|
||||||
'NoPermissionException', 'NoRouteToHostException',
|
|
||||||
'NoSuchAlgorithmException',
|
|
||||||
'NoSuchAttributeException', 'NoSuchElementException',
|
|
||||||
'NoSuchFieldError', 'NoSuchFieldException',
|
|
||||||
'NoSuchMethodError', 'NoSuchMethodException',
|
|
||||||
'NoSuchObjectException', 'NoSuchProviderException',
|
|
||||||
'NotActiveException', 'NotBoundException',
|
|
||||||
'NotContextException', 'NotEmpty', 'NotEmptyHelper',
|
|
||||||
'NotEmptyHolder', 'NotFound', 'NotFoundHelper',
|
|
||||||
'NotFoundHolder', 'NotFoundReason',
|
|
||||||
'NotFoundReasonHelper', 'NotFoundReasonHolder',
|
|
||||||
'NotOwnerException', 'NotSerializableException',
|
|
||||||
'NO_IMPLEMENT', 'NO_MEMORY', 'NO_PERMISSION',
|
|
||||||
'NO_RESOURCES', 'NO_RESPONSE',
|
|
||||||
'NullPointerException', 'Number', 'NumberFormat',
|
|
||||||
'NumberFormatException', 'NVList', 'Object',
|
|
||||||
'ObjectChangeListener', 'ObjectFactory',
|
|
||||||
'ObjectFactoryBuilder', 'ObjectHelper',
|
|
||||||
'ObjectHolder', 'ObjectImpl',
|
|
||||||
'ObjectInput', 'ObjectInputStream',
|
|
||||||
'ObjectInputStream.GetField',
|
|
||||||
'ObjectInputValidation', 'ObjectOutput',
|
|
||||||
'ObjectOutputStream', 'ObjectOutputStream.PutField',
|
|
||||||
'ObjectStreamClass', 'ObjectStreamConstants',
|
|
||||||
'ObjectStreamException', 'ObjectStreamField',
|
|
||||||
'ObjectView', 'OBJECT_NOT_EXIST', 'ObjID',
|
|
||||||
'OBJ_ADAPTER', 'Observable', 'Observer',
|
|
||||||
'OctetSeqHelper', 'OctetSeqHolder', 'OMGVMCID',
|
|
||||||
'OpenType', 'Operation',
|
|
||||||
'OperationNotSupportedException', 'Option',
|
|
||||||
'OptionalDataException', 'OptionPaneUI', 'ORB',
|
|
||||||
'OutOfMemoryError', 'OutputStream',
|
|
||||||
'OutputStreamWriter', 'OverlayLayout', 'Owner',
|
|
||||||
'Package', 'PackedColorModel', 'Pageable',
|
|
||||||
'PageAttributes', 'PageAttributes.ColorType',
|
|
||||||
'PageAttributes.MediaType',
|
|
||||||
'PageAttributes.OrientationRequestedType',
|
|
||||||
'PageAttributes.OriginType',
|
|
||||||
'PageAttributes.PrintQualityType', 'PageFormat',
|
|
||||||
'Paint', 'PaintContext', 'PaintEvent', 'Panel',
|
|
||||||
'PanelUI', 'Paper', 'ParagraphView',
|
|
||||||
'ParameterBlock', 'ParameterDescriptor',
|
|
||||||
'ParseException', 'ParsePosition', 'Parser',
|
|
||||||
'ParserDelegator', 'PartialResultException',
|
|
||||||
'PasswordAuthentication', 'PasswordView', 'Patch',
|
|
||||||
'PathIterator', 'Permission',
|
|
||||||
'PermissionCollection', 'Permissions',
|
|
||||||
'PERSIST_STORE', 'PhantomReference',
|
|
||||||
'PipedInputStream', 'PipedOutputStream',
|
|
||||||
'PipedReader', 'PipedWriter', 'PixelGrabber',
|
|
||||||
'PixelInterleavedSampleModel', 'PKCS8EncodedKeySpec',
|
|
||||||
'PlainDocument', 'PlainView', 'Point', 'Point2D',
|
|
||||||
'Point2D.Double', 'Point2D.Float', 'Policy',
|
|
||||||
'PolicyError', 'PolicyHelper',
|
|
||||||
'PolicyHolder', 'PolicyListHelper',
|
|
||||||
'PolicyListHolder', 'PolicyOperations',
|
|
||||||
'PolicyTypeHelper', 'Polygon', 'PopupMenu',
|
|
||||||
'PopupMenuEvent', 'PopupMenuListener', 'PopupMenuUI',
|
|
||||||
'Port', 'Port.Info', 'PortableRemoteObject',
|
|
||||||
'PortableRemoteObjectDelegate', 'Position',
|
|
||||||
'Position.Bias', 'PreparedStatement', 'Principal',
|
|
||||||
'PrincipalHolder', 'Printable',
|
|
||||||
'PrinterAbortException', 'PrinterException',
|
|
||||||
'PrinterGraphics', 'PrinterIOException',
|
|
||||||
'PrinterJob', 'PrintGraphics', 'PrintJob',
|
|
||||||
'PrintStream', 'PrintWriter', 'PrivateKey',
|
|
||||||
'PRIVATE_MEMBER', 'PrivilegedAction',
|
|
||||||
'PrivilegedActionException',
|
|
||||||
'PrivilegedExceptionAction', 'Process',
|
|
||||||
'ProfileDataException', 'ProgressBarUI',
|
|
||||||
'ProgressMonitor', 'ProgressMonitorInputStream',
|
|
||||||
'Properties', 'PropertyChangeEvent',
|
|
||||||
'PropertyChangeListener', 'PropertyChangeSupport',
|
|
||||||
'PropertyDescriptor', 'PropertyEditor',
|
|
||||||
'PropertyEditorManager', 'PropertyEditorSupport',
|
|
||||||
'PropertyPermission', 'PropertyResourceBundle',
|
|
||||||
'PropertyVetoException', 'ProtectionDomain',
|
|
||||||
'ProtocolException', 'Provider', 'ProviderException',
|
|
||||||
'Proxy', 'PublicKey', 'PUBLIC_MEMBER',
|
|
||||||
'PushbackInputStream', 'PushbackReader',
|
|
||||||
'QuadCurve2D', 'QuadCurve2D.Double',
|
|
||||||
'QuadCurve2D.Float', 'Random', 'RandomAccessFile',
|
|
||||||
'Raster', 'RasterFormatException', 'RasterOp',
|
|
||||||
'Reader', 'Receiver', 'Rectangle', 'Rectangle2D',
|
|
||||||
'Rectangle2D.Double', 'Rectangle2D.Float',
|
|
||||||
'RectangularShape', 'Ref', 'RefAddr', 'Reference',
|
|
||||||
'Referenceable', 'ReferenceQueue',
|
|
||||||
'ReferralException', 'ReflectPermission', 'Registry',
|
|
||||||
'RegistryHandler', 'RemarshalException', 'Remote',
|
|
||||||
'RemoteCall', 'RemoteException', 'RemoteObject',
|
|
||||||
'RemoteRef', 'RemoteServer', 'RemoteStub',
|
|
||||||
'RenderableImage', 'RenderableImageOp',
|
|
||||||
'RenderableImageProducer', 'RenderContext',
|
|
||||||
'RenderedImage', 'RenderedImageFactory', 'Renderer',
|
|
||||||
'RenderingHints', 'RenderingHints.Key',
|
|
||||||
'RepaintManager', 'ReplicateScaleFilter',
|
|
||||||
'Repository', 'RepositoryIdHelper', 'Request',
|
|
||||||
'RescaleOp', 'Resolver', 'ResolveResult',
|
|
||||||
'ResourceBundle', 'ResponseHandler', 'ResultSet',
|
|
||||||
'ResultSetMetaData', 'ReverbType', 'RGBImageFilter',
|
|
||||||
'RMIClassLoader', 'RMIClientSocketFactory',
|
|
||||||
'RMIFailureHandler', 'RMISecurityException',
|
|
||||||
'RMISecurityManager', 'RMIServerSocketFactory',
|
|
||||||
'RMISocketFactory', 'Robot', 'RootPaneContainer',
|
|
||||||
'RootPaneUI', 'RoundRectangle2D',
|
|
||||||
'RoundRectangle2D.Double', 'RoundRectangle2D.Float',
|
|
||||||
'RowMapper', 'RSAKey', 'RSAKeyGenParameterSpec',
|
|
||||||
'RSAPrivateCrtKey', 'RSAPrivateCrtKeySpec',
|
|
||||||
'RSAPrivateKey', 'RSAPrivateKeySpec', 'RSAPublicKey',
|
|
||||||
'RSAPublicKeySpec', 'RTFEditorKit',
|
|
||||||
'RuleBasedCollator', 'Runnable', 'RunTime',
|
|
||||||
'Runtime', 'RuntimeException', 'RunTimeOperations',
|
|
||||||
'RuntimePermission', 'SampleModel',
|
|
||||||
'SchemaViolationException', 'Scrollable',
|
|
||||||
'Scrollbar', 'ScrollBarUI', 'ScrollPane',
|
|
||||||
'ScrollPaneConstants', 'ScrollPaneLayout',
|
|
||||||
'ScrollPaneLayout.UIResource', 'ScrollPaneUI',
|
|
||||||
'SearchControls', 'SearchResult',
|
|
||||||
'SecureClassLoader', 'SecureRandom',
|
|
||||||
'SecureRandomSpi', 'Security', 'SecurityException',
|
|
||||||
'SecurityManager', 'SecurityPermission', 'Segment',
|
|
||||||
'SeparatorUI', 'Sequence', 'SequenceInputStream',
|
|
||||||
'Sequencer', 'Sequencer.SyncMode', 'Serializable',
|
|
||||||
'SerializablePermission', 'ServantObject',
|
|
||||||
'ServerCloneException', 'ServerError',
|
|
||||||
'ServerException', 'ServerNotActiveException',
|
|
||||||
'ServerRef', 'ServerRequest',
|
|
||||||
'ServerRuntimeException', 'ServerSocket',
|
|
||||||
'ServiceDetail', 'ServiceDetailHelper',
|
|
||||||
'ServiceInformation', 'ServiceInformationHelper',
|
|
||||||
'ServiceInformationHolder',
|
|
||||||
'ServiceUnavailableException', 'Set',
|
|
||||||
'SetOverrideType', 'SetOverrideTypeHelper', 'Shape',
|
|
||||||
'ShapeGraphicAttribute', 'Short', 'ShortHolder',
|
|
||||||
'ShortLookupTable', 'ShortMessage', 'ShortSeqHelper',
|
|
||||||
'ShortSeqHolder', 'Signature', 'SignatureException',
|
|
||||||
'SignatureSpi', 'SignedObject', 'Signer',
|
|
||||||
'SimpleAttributeSet', 'SimpleBeanInfo',
|
|
||||||
'SimpleDateFormat', 'SimpleTimeZone',
|
|
||||||
'SinglePixelPackedSampleModel',
|
|
||||||
'SingleSelectionModel', 'SizeLimitExceededException',
|
|
||||||
'SizeRequirements', 'SizeSequence', 'Skeleton',
|
|
||||||
'SkeletonMismatchException',
|
|
||||||
'SkeletonNotFoundException', 'SliderUI', 'Socket',
|
|
||||||
'SocketException', 'SocketImpl', 'SocketImplFactory',
|
|
||||||
'SocketOptions', 'SocketPermission',
|
|
||||||
'SocketSecurityException', 'SoftBevelBorder',
|
|
||||||
'SoftReference', 'SortedMap', 'SortedSet',
|
|
||||||
'Soundbank', 'SoundbankReader', 'SoundbankResource',
|
|
||||||
'SourceDataLine', 'SplitPaneUI', 'SQLData',
|
|
||||||
'SQLException', 'SQLInput', 'SQLOutput',
|
|
||||||
'SQLPermission', 'SQLWarning', 'Stack',
|
|
||||||
'StackOverflowError', 'StateEdit', 'StateEditable',
|
|
||||||
'StateFactory', 'Statement', 'Streamable',
|
|
||||||
'StreamableValue', 'StreamCorruptedException',
|
|
||||||
'StreamTokenizer', 'StrictMath', 'String',
|
|
||||||
'StringBuffer', 'StringBufferInputStream',
|
|
||||||
'StringCharacterIterator', 'StringContent',
|
|
||||||
'StringHolder', 'StringIndexOutOfBoundsException',
|
|
||||||
'StringReader', 'StringRefAddr', 'StringSelection',
|
|
||||||
'StringTokenizer', 'StringValueHelper',
|
|
||||||
'StringWriter', 'Stroke', 'Struct', 'StructMember',
|
|
||||||
'StructMemberHelper', 'Stub', 'StubDelegate',
|
|
||||||
'StubNotFoundException', 'Style', 'StyleConstants',
|
|
||||||
'StyleConstants.CharacterConstants',
|
|
||||||
'StyleConstants.ColorConstants',
|
|
||||||
'StyleConstants.FontConstants',
|
|
||||||
'StyleConstants.ParagraphConstants', 'StyleContext',
|
|
||||||
'StyledDocument', 'StyledEditorKit',
|
|
||||||
'StyledEditorKit.AlignmentAction',
|
|
||||||
'StyledEditorKit.BoldAction',
|
|
||||||
'StyledEditorKit.FontFamilyAction',
|
|
||||||
'StyledEditorKit.FontSizeAction',
|
|
||||||
'StyledEditorKit.ForegroundAction',
|
|
||||||
'StyledEditorKit.ItalicAction',
|
|
||||||
'StyledEditorKit.StyledTextAction',
|
|
||||||
'StyledEditorKit.UnderlineAction', 'StyleSheet',
|
|
||||||
'StyleSheet.BoxPainter', 'StyleSheet.ListPainter',
|
|
||||||
'SwingConstants', 'SwingPropertyChangeSupport',
|
|
||||||
'SwingUtilities', 'SyncFailedException',
|
|
||||||
'Synthesizer', 'SysexMessage', 'System',
|
|
||||||
'SystemColor', 'SystemException', 'SystemFlavorMap',
|
|
||||||
'TabableView', 'TabbedPaneUI', 'TabExpander',
|
|
||||||
'TableCellEditor', 'TableCellRenderer',
|
|
||||||
'TableColumn', 'TableColumnModel',
|
|
||||||
'TableColumnModelEvent', 'TableColumnModelListener',
|
|
||||||
'TableHeaderUI', 'TableModel', 'TableModelEvent',
|
|
||||||
'TableModelListener', 'TableUI', 'TableView',
|
|
||||||
'TabSet', 'TabStop', 'TagElement', 'TargetDataLine',
|
|
||||||
'TCKind', 'TextAction', 'TextArea', 'TextAttribute',
|
|
||||||
'TextComponent', 'TextEvent', 'TextField',
|
|
||||||
'TextHitInfo', 'TextLayout',
|
|
||||||
'TextLayout.CaretPolicy', 'TextListener',
|
|
||||||
'TextMeasurer', 'TextUI', 'TexturePaint', 'Thread',
|
|
||||||
'ThreadDeath', 'ThreadGroup', 'ThreadLocal',
|
|
||||||
'Throwable', 'Tie', 'TileObserver', 'Time',
|
|
||||||
'TimeLimitExceededException', 'Timer',
|
|
||||||
'TimerTask', 'Timestamp', 'TimeZone', 'TitledBorder',
|
|
||||||
'ToolBarUI', 'Toolkit', 'ToolTipManager',
|
|
||||||
'ToolTipUI', 'TooManyListenersException', 'Track',
|
|
||||||
'TransactionRequiredException',
|
|
||||||
'TransactionRolledbackException',
|
|
||||||
'TRANSACTION_REQUIRED', 'TRANSACTION_ROLLEDBACK',
|
|
||||||
'Transferable', 'TransformAttribute', 'TRANSIENT',
|
|
||||||
'Transmitter', 'Transparency', 'TreeCellEditor',
|
|
||||||
'TreeCellRenderer', 'TreeExpansionEvent',
|
|
||||||
'TreeExpansionListener', 'TreeMap', 'TreeModel',
|
|
||||||
'TreeModelEvent', 'TreeModelListener', 'TreeNode',
|
|
||||||
'TreePath', 'TreeSelectionEvent',
|
|
||||||
'TreeSelectionListener', 'TreeSelectionModel',
|
|
||||||
'TreeSet', 'TreeUI', 'TreeWillExpandListener',
|
|
||||||
'TypeCode', 'TypeCodeHolder', 'TypeMismatch',
|
|
||||||
'Types', 'UID', 'UIDefaults',
|
|
||||||
'UIDefaults.ActiveValue', 'UIDefaults.LazyInputMap',
|
|
||||||
'UIDefaults.LazyValue', 'UIDefaults.ProxyLazyValue',
|
|
||||||
'UIManager', 'UIManager.LookAndFeelInfo',
|
|
||||||
'UIResource', 'ULongLongSeqHelper',
|
|
||||||
'ULongLongSeqHolder', 'ULongSeqHelper',
|
|
||||||
'ULongSeqHolder', 'UndeclaredThrowableException',
|
|
||||||
'UndoableEdit', 'UndoableEditEvent',
|
|
||||||
'UndoableEditListener', 'UndoableEditSupport',
|
|
||||||
'UndoManager', 'UnexpectedException',
|
|
||||||
'UnicastRemoteObject', 'UnionMember',
|
|
||||||
'UnionMemberHelper', 'UNKNOWN', 'UnknownError',
|
|
||||||
'UnknownException', 'UnknownGroupException',
|
|
||||||
'UnknownHostException',
|
|
||||||
'UnknownObjectException', 'UnknownServiceException',
|
|
||||||
'UnknownUserException', 'UnmarshalException',
|
|
||||||
'UnrecoverableKeyException', 'Unreferenced',
|
|
||||||
'UnresolvedPermission', 'UnsatisfiedLinkError',
|
|
||||||
'UnsolicitedNotification',
|
|
||||||
'UnsolicitedNotificationEvent',
|
|
||||||
'UnsolicitedNotificationListener',
|
|
||||||
'UnsupportedAudioFileException',
|
|
||||||
'UnsupportedClassVersionError',
|
|
||||||
'UnsupportedEncodingException',
|
|
||||||
'UnsupportedFlavorException',
|
|
||||||
'UnsupportedLookAndFeelException',
|
|
||||||
'UnsupportedOperationException',
|
|
||||||
'UNSUPPORTED_POLICY', 'UNSUPPORTED_POLICY_VALUE',
|
|
||||||
'URL', 'URLClassLoader', 'URLConnection',
|
|
||||||
'URLDecoder', 'URLEncoder', 'URLStreamHandler',
|
|
||||||
'URLStreamHandlerFactory', 'UserException',
|
|
||||||
'UShortSeqHelper', 'UShortSeqHolder',
|
|
||||||
'UTFDataFormatException', 'Util', 'UtilDelegate',
|
|
||||||
'Utilities', 'ValueBase', 'ValueBaseHelper',
|
|
||||||
'ValueBaseHolder', 'ValueFactory', 'ValueHandler',
|
|
||||||
'ValueMember', 'ValueMemberHelper',
|
|
||||||
'VariableHeightLayoutCache', 'Vector', 'VerifyError',
|
|
||||||
'VersionSpecHelper', 'VetoableChangeListener',
|
|
||||||
'VetoableChangeSupport', 'View', 'ViewFactory',
|
|
||||||
'ViewportLayout', 'ViewportUI',
|
|
||||||
'VirtualMachineError', 'Visibility',
|
|
||||||
'VisibilityHelper', 'VMID', 'VM_ABSTRACT',
|
|
||||||
'VM_CUSTOM', 'VM_NONE', 'VM_TRUNCATABLE',
|
|
||||||
'VoiceStatus', 'Void', 'WCharSeqHelper',
|
|
||||||
'WCharSeqHolder', 'WeakHashMap', 'WeakReference',
|
|
||||||
'Window', 'WindowAdapter', 'WindowConstants',
|
|
||||||
'WindowEvent', 'WindowListener', 'WrappedPlainView',
|
|
||||||
'WritableRaster', 'WritableRenderedImage',
|
|
||||||
'WriteAbortedException', 'Writer',
|
|
||||||
'WrongTransaction', 'WStringValueHelper',
|
|
||||||
'X509Certificate', 'X509CRL', 'X509CRLEntry',
|
|
||||||
'X509EncodedKeySpec', 'X509Extension', 'ZipEntry',
|
|
||||||
'ZipException', 'ZipFile', 'ZipInputStream',
|
|
||||||
'ZipOutputStream', 'ZoneView',
|
|
||||||
'_BindingIteratorImplBase', '_BindingIteratorStub',
|
|
||||||
'_IDLTypeStub', '_NamingContextImplBase',
|
|
||||||
'_NamingContextStub', '_PolicyStub', '_Remote_Stub'
|
|
||||||
),
|
|
||||||
4 => array(
|
|
||||||
'void', 'double', 'int', 'boolean', 'byte', 'short', 'long', 'char', 'float'
|
|
||||||
)
|
|
||||||
),
|
|
||||||
'SYMBOLS' => array(
|
|
||||||
'(', ')', '[', ']', '{', '}',
|
|
||||||
'+', '-', '*', '/', '%',
|
|
||||||
'!', '&', '|', '^',
|
|
||||||
'<', '>', '=',
|
|
||||||
'?', ':', ';',
|
|
||||||
),
|
|
||||||
'CASE_SENSITIVE' => array(
|
|
||||||
GESHI_COMMENTS => false,
|
|
||||||
1 => false,
|
|
||||||
2 => false,
|
|
||||||
3 => true,
|
|
||||||
4 => true
|
|
||||||
),
|
|
||||||
'STYLES' => array(
|
|
||||||
'KEYWORDS' => array(
|
|
||||||
1 => 'color: #000000; font-weight: bold;',
|
|
||||||
2 => 'color: #000066; font-weight: bold;',
|
|
||||||
3 => 'color: #003399;',
|
|
||||||
4 => 'color: #000066; font-weight: bold;'
|
|
||||||
),
|
|
||||||
'COMMENTS' => array(
|
|
||||||
1 => 'color: #666666; font-style: italic;',
|
|
||||||
2 => 'color: #006699;',
|
|
||||||
3 => 'color: #008000; font-style: italic; font-weight: bold;',
|
|
||||||
'MULTI' => 'color: #666666; font-style: italic;'
|
|
||||||
),
|
|
||||||
'ESCAPE_CHAR' => array(
|
|
||||||
0 => 'color: #000099; font-weight: bold;'
|
|
||||||
),
|
|
||||||
'BRACKETS' => array(
|
|
||||||
0 => 'color: #009900;'
|
|
||||||
),
|
|
||||||
'STRINGS' => array(
|
|
||||||
0 => 'color: #0000ff;'
|
|
||||||
),
|
|
||||||
'NUMBERS' => array(
|
|
||||||
0 => 'color: #cc66cc;'
|
|
||||||
),
|
|
||||||
'METHODS' => array(
|
|
||||||
1 => 'color: #006633;',
|
|
||||||
2 => 'color: #006633;'
|
|
||||||
),
|
|
||||||
'SYMBOLS' => array(
|
|
||||||
0 => 'color: #339933;'
|
|
||||||
),
|
|
||||||
'SCRIPT' => array(),
|
|
||||||
'REGEXPS' => array()
|
|
||||||
),
|
|
||||||
'URLS' => array(
|
|
||||||
1 => '',
|
|
||||||
2 => '',
|
|
||||||
3 => 'http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+{FNAMEL}',
|
|
||||||
4 => ''
|
|
||||||
),
|
|
||||||
'OOLANG' => true,
|
|
||||||
'OBJECT_SPLITTERS' => array(
|
|
||||||
1 => '.'
|
|
||||||
),
|
|
||||||
'REGEXPS' => array(),
|
|
||||||
'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
|
||||||
'SCRIPT_DELIMITERS' => array(),
|
|
||||||
'HIGHLIGHT_STRICT_BLOCK' => array()
|
|
||||||
);
|
|
|
@ -1,170 +0,0 @@
|
||||||
<?php
|
|
||||||
/*************************************************************************************
|
|
||||||
* javascript.php
|
|
||||||
* --------------
|
|
||||||
* Author: Ben Keen (ben.keen@gmail.com)
|
|
||||||
* Copyright: (c) 2004 Ben Keen (ben.keen@gmail.com), Nigel McNie (http://qbnz.com/highlighter)
|
|
||||||
* Release Version: 1.0.8.12
|
|
||||||
* Date Started: 2004/06/20
|
|
||||||
*
|
|
||||||
* JavaScript language file for GeSHi.
|
|
||||||
*
|
|
||||||
* CHANGES
|
|
||||||
* -------
|
|
||||||
* 2012/06/27 (1.0.8.11)
|
|
||||||
* - Reordered Keyword Groups to reflect syntactical meaning of keywords
|
|
||||||
* 2008/05/23 (1.0.7.22)
|
|
||||||
* - Added description of extra language features (SF#1970248)
|
|
||||||
* 2004/11/27 (1.0.1)
|
|
||||||
* - Added support for multiple object splitters
|
|
||||||
* 2004/10/27 (1.0.0)
|
|
||||||
* - First Release
|
|
||||||
*
|
|
||||||
* TODO (updated 2004/11/27)
|
|
||||||
* -------------------------
|
|
||||||
*
|
|
||||||
*************************************************************************************
|
|
||||||
*
|
|
||||||
* This file is part of GeSHi.
|
|
||||||
*
|
|
||||||
* GeSHi is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* GeSHi is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with GeSHi; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
$language_data = array(
|
|
||||||
'LANG_NAME' => 'Javascript',
|
|
||||||
'COMMENT_SINGLE' => array(1 => '//'),
|
|
||||||
'COMMENT_MULTI' => array('/*' => '*/'),
|
|
||||||
'COMMENT_REGEXP' => array(
|
|
||||||
//Regular Expressions
|
|
||||||
2 => "/(?<=[\\s^])(s|tr|y)\\/(?!\*)(?!\s)(?:\\\\.|(?!\n)[^\\/\\\\])+(?<!\s)\\/(?!\s)(?:\\\\.|(?!\n)[^\\/\\\\])*(?<!\s)\\/[msixpogcde]*(?=[\\s$\\.\\;])|(?<=[\\s^(=])(m|q[qrwx]?)?\\/(?!\*)(?!\s)(?:\\\\.|(?!\n)[^\\/\\\\])+(?<!\s)\\/[msixpogc]*(?=[\\s$\\.\\,\\;\\)])/iU"
|
|
||||||
),
|
|
||||||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
|
|
||||||
'QUOTEMARKS' => array("'", '"'),
|
|
||||||
'ESCAPE_CHAR' => '\\',
|
|
||||||
'KEYWORDS' => array(
|
|
||||||
1 => array(
|
|
||||||
//reserved/keywords; also some non-reserved keywords
|
|
||||||
'break', 'case', 'catch', 'const', 'continue',
|
|
||||||
'default', 'delete', 'do',
|
|
||||||
'else',
|
|
||||||
'finally', 'for', 'function',
|
|
||||||
'get', 'goto',
|
|
||||||
'if', 'in', 'instanceof',
|
|
||||||
'new',
|
|
||||||
'prototype',
|
|
||||||
'return',
|
|
||||||
'set', 'static', 'switch',
|
|
||||||
'this', 'throw', 'try', 'typeof',
|
|
||||||
'var', 'void'
|
|
||||||
),
|
|
||||||
2 => array(
|
|
||||||
//reserved/non-keywords; metaconstants
|
|
||||||
'false', 'null', 'true', 'undefined', 'NaN', 'Infinity'
|
|
||||||
),
|
|
||||||
3 => array(
|
|
||||||
//magic properties/functions
|
|
||||||
'__proto__', '__defineGetter__', '__defineSetter__', 'hasOwnProperty', 'hasProperty'
|
|
||||||
),
|
|
||||||
4 => array(
|
|
||||||
//type constructors
|
|
||||||
'Object', 'Function', 'Date', 'Math', 'String', 'Number', 'Boolean', 'Array'
|
|
||||||
),
|
|
||||||
5 => array(
|
|
||||||
//reserved, but invalid in language
|
|
||||||
'abstract', 'boolean', 'byte', 'char', 'class', 'debugger', 'double', 'enum', 'export', 'extends',
|
|
||||||
'final', 'float', 'implements', 'import', 'int', 'interface', 'long', 'native',
|
|
||||||
'short', 'super', 'synchronized', 'throws', 'transient', 'volatile'
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'SYMBOLS' => array(
|
|
||||||
'(', ')', '[', ']', '{', '}',
|
|
||||||
'+', '-', '*', '/', '%',
|
|
||||||
'!', '@', '&', '|', '^',
|
|
||||||
'<', '>', '=',
|
|
||||||
',', ';', '?', ':'
|
|
||||||
),
|
|
||||||
'CASE_SENSITIVE' => array(
|
|
||||||
GESHI_COMMENTS => false,
|
|
||||||
1 => true,
|
|
||||||
2 => true,
|
|
||||||
3 => true,
|
|
||||||
4 => true,
|
|
||||||
5 => true
|
|
||||||
),
|
|
||||||
'STYLES' => array(
|
|
||||||
'KEYWORDS' => array(
|
|
||||||
1 => 'color: #000066; font-weight: bold;',
|
|
||||||
2 => 'color: #003366; font-weight: bold;',
|
|
||||||
3 => 'color: #000066;',
|
|
||||||
5 => 'color: #FF0000;'
|
|
||||||
),
|
|
||||||
'COMMENTS' => array(
|
|
||||||
1 => 'color: #006600; font-style: italic;',
|
|
||||||
2 => 'color: #009966; font-style: italic;',
|
|
||||||
'MULTI' => 'color: #006600; font-style: italic;'
|
|
||||||
),
|
|
||||||
'ESCAPE_CHAR' => array(
|
|
||||||
0 => 'color: #000099; font-weight: bold;'
|
|
||||||
),
|
|
||||||
'BRACKETS' => array(
|
|
||||||
0 => 'color: #009900;'
|
|
||||||
),
|
|
||||||
'STRINGS' => array(
|
|
||||||
0 => 'color: #3366CC;'
|
|
||||||
),
|
|
||||||
'NUMBERS' => array(
|
|
||||||
0 => 'color: #CC0000;'
|
|
||||||
),
|
|
||||||
'METHODS' => array(
|
|
||||||
1 => 'color: #660066;'
|
|
||||||
),
|
|
||||||
'SYMBOLS' => array(
|
|
||||||
0 => 'color: #339933;'
|
|
||||||
),
|
|
||||||
'REGEXPS' => array(),
|
|
||||||
'SCRIPT' => array(
|
|
||||||
0 => '',
|
|
||||||
1 => '',
|
|
||||||
2 => '',
|
|
||||||
3 => ''
|
|
||||||
)
|
|
||||||
),
|
|
||||||
'URLS' => array(
|
|
||||||
1 => '',
|
|
||||||
2 => '',
|
|
||||||
3 => '',
|
|
||||||
4 => '',
|
|
||||||
5 => ''
|
|
||||||
),
|
|
||||||
'OOLANG' => true,
|
|
||||||
'OBJECT_SPLITTERS' => array(
|
|
||||||
1 => '.'
|
|
||||||
),
|
|
||||||
'REGEXPS' => array(),
|
|
||||||
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
|
|
||||||
'SCRIPT_DELIMITERS' => array(
|
|
||||||
0 => array(
|
|
||||||
'<script type="text/javascript">' => '</script>'
|
|
||||||
),
|
|
||||||
1 => array(
|
|
||||||
'<script language="javascript">' => '</script>'
|
|
||||||
)
|
|
||||||
),
|
|
||||||
'HIGHLIGHT_STRICT_BLOCK' => array(
|
|
||||||
0 => true,
|
|
||||||
1 => true
|
|
||||||
)
|
|
||||||
);
|
|
|
@ -1,107 +0,0 @@
|
||||||
<?php
|
|
||||||
/*
|
|
||||||
Plugin Name: Markdown Geshi
|
|
||||||
Plugin URI: http://github.com/drm/Markdown_Geshi
|
|
||||||
Description: <a href="http://daringfireball.net/projects/markdown/syntax">Markdown syntax</a> with GeSHi code highlighting added.
|
|
||||||
Version: 0.2
|
|
||||||
Author: Gerard van Helden
|
|
||||||
Author URI: http://melp.nl
|
|
||||||
*/
|
|
||||||
define('MARKDOWN_PARSER_CLASS', 'MarkdownGeshi_Parser');
|
|
||||||
|
|
||||||
require_once 'markdown.php';
|
|
||||||
require_once 'wp-syntax/geshi/geshi.php';
|
|
||||||
|
|
||||||
class MarkdownGeshi_Parser extends MarkdownExtra_Parser {
|
|
||||||
/**
|
|
||||||
* The 'processing instruction' pattern for the code blocks parser.
|
|
||||||
* Format is defined as : #!language@linenumber. The @linenumber
|
|
||||||
* part is optional.
|
|
||||||
*
|
|
||||||
* Optional parameters are allowed past a semicolon.
|
|
||||||
*/
|
|
||||||
public $shebang = '/^
|
|
||||||
\s*
|
|
||||||
\#!(?P<lang>\w+)
|
|
||||||
(?:@(?P<linenumber>\d+))?
|
|
||||||
\s*
|
|
||||||
(?:;\s*(?P<params>.*?)\s*)?\n
|
|
||||||
(?P<code>.*)
|
|
||||||
/sx';
|
|
||||||
|
|
||||||
function hasShebang($code) {
|
|
||||||
if (preg_match($this->shebang, $code, $m)) {
|
|
||||||
return $m;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _doCodeBlocks_callback($matches) {
|
|
||||||
if ($m = $this->hasShebang($matches[1])) {
|
|
||||||
return $this->_doGeshi($m);
|
|
||||||
} else {
|
|
||||||
return parent::_doCodeBlocks_callback($matches);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _doFencedCodeBlocks_callback($matches) {
|
|
||||||
if ($m = $this->hasShebang($matches[2])) {
|
|
||||||
return $this->_doGeshi($m);
|
|
||||||
} else {
|
|
||||||
return parent::_doFencedCodeBlocks_callback($matches);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _doGeshi($shebangMatch) {
|
|
||||||
$language = $shebangMatch['lang'];
|
|
||||||
$line = (int)(($shebangMatch['linenumber'] > 1) ? $shebangMatch['linenumber'] : 0);
|
|
||||||
$codeblock = $shebangMatch['code'];
|
|
||||||
|
|
||||||
$highlighter = new GeSHi($this->outdent(trim($codeblock)), $language);
|
|
||||||
$highlighted = $highlighter->parse_code();
|
|
||||||
if ($line) {
|
|
||||||
preg_match('!^(\s*<pre[^>]+>)(.*)(</pre>)!s', $highlighted, $m);
|
|
||||||
|
|
||||||
$ret = '<ol';
|
|
||||||
if ($line) {
|
|
||||||
$ret .= ' start="' . $line . '"';
|
|
||||||
}
|
|
||||||
$ret .= '>';
|
|
||||||
$ret .= preg_replace(
|
|
||||||
'/.+(\n|$)/',
|
|
||||||
'<li>$0</li>',
|
|
||||||
$m[2]
|
|
||||||
);
|
|
||||||
$ret .= '</ol>';
|
|
||||||
|
|
||||||
$ret = $m[1] . $ret . $m[3];
|
|
||||||
} else {
|
|
||||||
$ret = $highlighted;
|
|
||||||
}
|
|
||||||
if ($shebangMatch['params']) {
|
|
||||||
$ret = $this->_processGeshiParams($ret, $shebangMatch['params']);
|
|
||||||
}
|
|
||||||
|
|
||||||
return "\n\n" . $this->hashBlock($ret) . "\n\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function _processGeshiParams($highlighted, $params) {
|
|
||||||
foreach (explode(',', $params) as $keyValuePair) {
|
|
||||||
@list($key, $value) = array_map('trim', explode('=', $keyValuePair));
|
|
||||||
if ($key && $value) {
|
|
||||||
switch ($key) {
|
|
||||||
case 'gist':
|
|
||||||
$highlighted =
|
|
||||||
sprintf(
|
|
||||||
'<cite class="gist">(GIST: <a href="https://gist.github.com/%1$d" target="_blank">%1$d</a>)</cite>',
|
|
||||||
$value
|
|
||||||
)
|
|
||||||
. $highlighted;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $highlighted;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,465 +0,0 @@
|
||||||
<?php
|
|
||||||
/*************************************************************************************
|
|
||||||
* mysql.php
|
|
||||||
* ---------
|
|
||||||
* Author: Marjolein Katsma (marjolein.is.back@gmail.com)
|
|
||||||
* Copyright: (c) 2008 Marjolein Katsma (http://blog.marjoleinkatsma.com/)
|
|
||||||
* Release Version: 1.0.8.12
|
|
||||||
* Date Started: 2008-12-12
|
|
||||||
*
|
|
||||||
* MySQL language file for GeSHi.
|
|
||||||
*
|
|
||||||
* Based on original MySQL language file by Carl Fürstenberg (2004); brought
|
|
||||||
* up-to-date for current MySQL versions, and with more classes for different
|
|
||||||
* types of keywords; several minor errors were corrected as well.
|
|
||||||
*
|
|
||||||
* Some "classes" have two groups here: this is to allow for the fact that some
|
|
||||||
* keywords in MySQL have a double function: many of those are either a function
|
|
||||||
* (must be immediately followed by an opening bracket) or some other keyword:
|
|
||||||
* so they can be distinguished by the presence (or not) of that opening bracket.
|
|
||||||
* (An immediately following opening bracket is a default rule for functions in
|
|
||||||
* MySQL, though this may be overridden; because it's only a default, we use a
|
|
||||||
* regex lookahead only where necessary to distinguish homonyms, not generally
|
|
||||||
* to match any function.)
|
|
||||||
* Other keywords with double usage cannot be distinguished and are classified
|
|
||||||
* in the "Mix" category.
|
|
||||||
*
|
|
||||||
*************************************************************************************
|
|
||||||
*
|
|
||||||
* This file is part of GeSHi.
|
|
||||||
*
|
|
||||||
* GeSHi is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* GeSHi is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with GeSHi; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
$language_data = array(
|
|
||||||
'LANG_NAME' => 'MySQL',
|
|
||||||
//'COMMENT_SINGLE' => array(1 =>'--', 2 => '#'), // '--' MUST be folowed by whitespace,not necessarily a space
|
|
||||||
'COMMENT_SINGLE' => array(
|
|
||||||
1 => '-- ',
|
|
||||||
2 => '#'
|
|
||||||
),
|
|
||||||
'COMMENT_REGEXP' => array(
|
|
||||||
1 => "/(?:--\s).*?$/", // double dash followed by any whitespace
|
|
||||||
),
|
|
||||||
'COMMENT_MULTI' => array('/*' => '*/'),
|
|
||||||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, // @@@ would be nice if this could be defined per group!
|
|
||||||
'QUOTEMARKS' => array("'", '"', '`'),
|
|
||||||
'ESCAPE_CHAR' => '\\', // by default only, can be specified
|
|
||||||
'ESCAPE_REGEXP' => array(
|
|
||||||
1 => "/[_%]/", // search wildcards
|
|
||||||
),
|
|
||||||
'NUMBERS' =>
|
|
||||||
GESHI_NUMBER_INT_BASIC |
|
|
||||||
GESHI_NUMBER_OCT_PREFIX |
|
|
||||||
GESHI_NUMBER_HEX_PREFIX |
|
|
||||||
GESHI_NUMBER_FLT_NONSCI |
|
|
||||||
GESHI_NUMBER_FLT_SCI_SHORT |
|
|
||||||
GESHI_NUMBER_FLT_SCI_ZERO,
|
|
||||||
'KEYWORDS' => array(
|
|
||||||
1 => array(
|
|
||||||
// Mix: statement keywords and keywords that don't fit in any other
|
|
||||||
// category, or have multiple usage/meanings
|
|
||||||
'ACTION', 'ADD', 'AFTER', 'ALGORITHM', 'ALL', 'ALTER', 'ANALYZE', 'ANY',
|
|
||||||
'ASC', 'AS', 'BDB', 'BEGIN', 'BERKELEYDB', 'BINARY', 'BTREE', 'CALL',
|
|
||||||
'CASCADED', 'CASCADE', 'CHAIN', 'CHANGE', 'CHECK', 'COLUMNS', 'COLUMN',
|
|
||||||
'COMMENT', 'COMMIT', 'COMMITTED', 'CONSTRAINT', 'CONTAINS SQL',
|
|
||||||
'CONSISTENT', 'CONVERT', 'CREATE', 'CROSS', 'DATA', 'DATABASES',
|
|
||||||
'DECLARE', 'DEFINER', 'DELAYED', 'DELETE', 'DESCRIBE', 'DESC',
|
|
||||||
'DETERMINISTIC', 'DISABLE', 'DISCARD', 'DISTINCTROW', 'DISTINCT', 'DO',
|
|
||||||
'DROP', 'DUMPFILE', 'DUPLICATE KEY', 'ENABLE', 'ENCLOSED BY', 'ENGINE',
|
|
||||||
'ERRORS', 'ESCAPED BY', 'EXISTS', 'EXPLAIN', 'EXTENDED', 'FIELDS',
|
|
||||||
'FIRST', 'FOR EACH ROW', 'FORCE', 'FOREIGN KEY', 'FROM', 'FULL',
|
|
||||||
'FUNCTION', 'GLOBAL', 'GRANT', 'GROUP BY', 'HANDLER', 'HASH', 'HAVING',
|
|
||||||
'HELP', 'HIGH_PRIORITY', 'IF NOT EXISTS', 'IGNORE', 'IMPORT', 'INDEX',
|
|
||||||
'INFILE', 'INNER', 'INNODB', 'INOUT', 'INTO', 'INVOKER',
|
|
||||||
'ISOLATION LEVEL', 'JOIN', 'KEYS', 'KEY', 'KILL', 'LANGUAGE SQL', 'LAST',
|
|
||||||
'LIMIT', 'LINES', 'LOAD', 'LOCAL', 'LOCK', 'LOW_PRIORITY',
|
|
||||||
'MASTER_SERVER_ID', 'MATCH', 'MERGE', 'MIDDLEINT', 'MODIFIES SQL DATA',
|
|
||||||
'MODIFY', 'MRG_MYISAM', 'NATURAL', 'NEXT', 'NO SQL', 'NO', 'ON',
|
|
||||||
'OPTIMIZE', 'OPTIONALLY', 'OPTION', 'ORDER BY', 'OUTER', 'OUTFILE', 'OUT',
|
|
||||||
'PARTIAL', 'PARTITION', 'PREV', 'PRIMARY KEY', 'PRIVILEGES', 'PROCEDURE',
|
|
||||||
'PURGE', 'QUICK', 'READS SQL DATA', 'READ', 'REFERENCES', 'RELEASE',
|
|
||||||
'RENAME', 'REORGANIZE', 'REPEATABLE', 'REQUIRE', 'RESTRICT', 'RETURNS',
|
|
||||||
'REVOKE', 'ROLLBACK', 'ROUTINE', 'RTREE', 'SAVEPOINT', 'SELECT',
|
|
||||||
'SERIALIZABLE', 'SESSION', 'SET', 'SHARE MODE', 'SHOW', 'SIMPLE',
|
|
||||||
'SNAPSHOT', 'SOME', 'SONAME', 'SQL SECURITY', 'SQL_BIG_RESULT',
|
|
||||||
'SQL_BUFFER_RESULT', 'SQL_CACHE', 'SQL_CALC_FOUND_ROWS',
|
|
||||||
'SQL_NO_CACHE', 'SQL_SMALL_RESULT', 'SSL', 'START', 'STARTING BY',
|
|
||||||
'STATUS', 'STRAIGHT_JOIN', 'STRIPED', 'TABLESPACE', 'TABLES', 'TABLE',
|
|
||||||
'TEMPORARY', 'TEMPTABLE', 'TERMINATED BY', 'TO', 'TRANSACTIONS',
|
|
||||||
'TRANSACTION', 'TRIGGER', 'TYPES', 'TYPE', 'UNCOMMITTED', 'UNDEFINED',
|
|
||||||
'UNION', 'UNLOCK_TABLES', 'UPDATE', 'USAGE', 'USE', 'USER_RESOURCES',
|
|
||||||
'USING', 'VALUES', 'VALUE', 'VIEW', 'WARNINGS', 'WHERE', 'WITH ROLLUP',
|
|
||||||
'WITH', 'WORK', 'WRITE',
|
|
||||||
),
|
|
||||||
2 => array( //No ( must follow
|
|
||||||
// Mix: statement keywords distinguished from functions by the same name
|
|
||||||
"CURRENT_USER", "DATABASE", "IN", "INSERT", "DEFAULT", "REPLACE", "SCHEMA", "TRUNCATE"
|
|
||||||
),
|
|
||||||
3 => array(
|
|
||||||
// Values (Constants)
|
|
||||||
'FALSE', 'NULL', 'TRUE',
|
|
||||||
),
|
|
||||||
4 => array(
|
|
||||||
// Column Data Types
|
|
||||||
'BIGINT', 'BIT', 'BLOB', 'BOOLEAN', 'BOOL', 'CHARACTER VARYING',
|
|
||||||
'CHAR VARYING', 'DATETIME', 'DECIMAL', 'DEC', 'DOUBLE PRECISION',
|
|
||||||
'DOUBLE', 'ENUM', 'FIXED', 'FLOAT', 'GEOMETRYCOLLECTION', 'GEOMETRY',
|
|
||||||
'INTEGER', 'INT', 'LINESTRING', 'LONGBLOB', 'LONGTEXT', 'MEDIUMBLOB',
|
|
||||||
'MEDIUMINT', 'MEDIUMTEXT', 'MULTIPOINT', 'MULTILINESTRING',
|
|
||||||
'MULTIPOLYGON', 'NATIONAL CHARACTER', 'NATIONAL CHARACTER VARYING',
|
|
||||||
'NATIONAL CHAR VARYING', 'NATIONAL VARCHAR', 'NCHAR VARCHAR', 'NCHAR',
|
|
||||||
'NUMERIC', 'POINT', 'POLYGON', 'REAL', 'SERIAL',
|
|
||||||
'SMALLINT', 'TEXT', 'TIMESTAMP', 'TINYBLOB', 'TINYINT',
|
|
||||||
'TINYTEXT', 'VARBINARY', 'VARCHARACTER', 'VARCHAR',
|
|
||||||
),
|
|
||||||
5 => array( //No ( must follow
|
|
||||||
// Column data types distinguished from functions by the same name
|
|
||||||
"CHAR", "DATE", "TIME"
|
|
||||||
),
|
|
||||||
6 => array(
|
|
||||||
// Table, Column & Index Attributes
|
|
||||||
'AUTO_INCREMENT', 'AVG_ROW_LENGTH', 'BOTH', 'CHECKSUM', 'CONNECTION',
|
|
||||||
'DATA DIRECTORY', 'DEFAULT NULL', 'DELAY_KEY_WRITE', 'FULLTEXT',
|
|
||||||
'INDEX DIRECTORY', 'INSERT_METHOD', 'LEADING', 'MAX_ROWS', 'MIN_ROWS',
|
|
||||||
'NOT NULL', 'PACK_KEYS', 'ROW_FORMAT', 'SERIAL DEFAULT VALUE', 'SIGNED',
|
|
||||||
'SPATIAL', 'TRAILING', 'UNIQUE', 'UNSIGNED', 'ZEROFILL'
|
|
||||||
),
|
|
||||||
7 => array( //No ( must follow
|
|
||||||
// Column attribute distinguished from function by the same name
|
|
||||||
"CHARSET"
|
|
||||||
),
|
|
||||||
8 => array(
|
|
||||||
// Date and Time Unit Specifiers
|
|
||||||
'DAY_HOUR', 'DAY_MICROSECOND', 'DAY_MINUTE', 'DAY_SECOND',
|
|
||||||
'HOUR_MICROSECOND', 'HOUR_MINUTE', 'HOUR_SECOND',
|
|
||||||
'MINUTE_MICROSECOND', 'MINUTE_SECOND',
|
|
||||||
'SECOND_MICROSECOND', 'YEAR_MONTH'
|
|
||||||
),
|
|
||||||
9 => array( //No ( must follow
|
|
||||||
// Date-time unit specifiers distinguished from functions by the same name
|
|
||||||
"DAY", "HOUR", "MICROSECOND", "MINUTE", "MONTH", "QUARTER", "SECOND", "WEEK", "YEAR"
|
|
||||||
),
|
|
||||||
10 => array(
|
|
||||||
// Operators (see also Symbols)
|
|
||||||
'AND', 'BETWEEN', 'CHARACTER SET', 'COLLATE', 'DIV', 'IS NOT NULL',
|
|
||||||
'IS NOT', 'IS NULL', 'IS', 'LIKE', 'NOT', 'OFFSET', 'OR', 'REGEXP', 'RLIKE',
|
|
||||||
'SOUNDS LIKE', 'XOR'
|
|
||||||
),
|
|
||||||
11 => array( //No ( must follow
|
|
||||||
// Operator distinghuished from function by the same name
|
|
||||||
"INTERVAL"
|
|
||||||
),
|
|
||||||
12 => array(
|
|
||||||
// Control Flow (functions)
|
|
||||||
'CASE', 'ELSE', 'END', 'IFNULL', 'IF', 'NULLIF', 'THEN', 'WHEN',
|
|
||||||
),
|
|
||||||
13 => array(
|
|
||||||
// String Functions
|
|
||||||
'ASCII', 'BIN', 'BIT_LENGTH', 'CHAR_LENGTH', 'CHARACTER_LENGTH',
|
|
||||||
'CONCAT_WS', 'CONCAT', 'ELT', 'EXPORT_SET', 'FIELD',
|
|
||||||
'FIND_IN_SET', 'FORMAT', 'HEX', 'INSTR', 'LCASE', 'LEFT', 'LENGTH',
|
|
||||||
'LOAD_FILE', 'LOCATE', 'LOWER', 'LPAD', 'LTRIM', 'MAKE_SET', 'MID',
|
|
||||||
'OCTET_LENGTH', 'ORD', 'POSITION', 'QUOTE', 'REPEAT', 'REVERSE',
|
|
||||||
'RIGHT', 'RPAD', 'RTRIM', 'SOUNDEX', 'SPACE', 'STRCMP', 'SUBSTRING_INDEX',
|
|
||||||
'SUBSTRING', 'TRIM', 'UCASE', 'UNHEX', 'UPPER',
|
|
||||||
),
|
|
||||||
14 => array( //A ( must follow
|
|
||||||
// String functions distinguished from other keywords by the same name
|
|
||||||
"INSERT", "REPLACE", "CHAR"
|
|
||||||
),
|
|
||||||
15 => array(
|
|
||||||
// Numeric Functions
|
|
||||||
'ABS', 'ACOS', 'ASIN', 'ATAN2', 'ATAN', 'CEILING', 'CEIL',
|
|
||||||
'CONV', 'COS', 'COT', 'CRC32', 'DEGREES', 'EXP', 'FLOOR', 'LN', 'LOG10',
|
|
||||||
'LOG2', 'LOG', 'MOD', 'OCT', 'PI', 'POWER', 'POW', 'RADIANS', 'RAND',
|
|
||||||
'ROUND', 'SIGN', 'SIN', 'SQRT', 'TAN',
|
|
||||||
),
|
|
||||||
16 => array( //A ( must follow
|
|
||||||
// Numeric function distinguished from other keyword by the same name
|
|
||||||
"TRUNCATE"
|
|
||||||
),
|
|
||||||
17 => array(
|
|
||||||
// Date and Time Functions
|
|
||||||
'ADDDATE', 'ADDTIME', 'CONVERT_TZ', 'CURDATE', 'CURRENT_DATE',
|
|
||||||
'CURRENT_TIME', 'CURRENT_TIMESTAMP', 'CURTIME', 'DATE_ADD',
|
|
||||||
'DATE_FORMAT', 'DATE_SUB', 'DATEDIFF', 'DAYNAME', 'DAYOFMONTH',
|
|
||||||
'DAYOFWEEK', 'DAYOFYEAR', 'EXTRACT', 'FROM_DAYS', 'FROM_UNIXTIME',
|
|
||||||
'GET_FORMAT', 'LAST_DAY', 'LOCALTIME', 'LOCALTIMESTAMP', 'MAKEDATE',
|
|
||||||
'MAKETIME', 'MONTHNAME', 'NOW', 'PERIOD_ADD',
|
|
||||||
'PERIOD_DIFF', 'SEC_TO_TIME', 'STR_TO_DATE', 'SUBDATE', 'SUBTIME',
|
|
||||||
'SYSDATE', 'TIME_FORMAT', 'TIME_TO_SEC',
|
|
||||||
'TIMESTAMPADD', 'TIMESTAMPDIFF', 'TO_DAYS',
|
|
||||||
'UNIX_TIMESTAMP', 'UTC_DATE', 'UTC_TIME', 'UTC_TIMESTAMP', 'WEEKDAY',
|
|
||||||
'WEEKOFYEAR', 'YEARWEEK',
|
|
||||||
),
|
|
||||||
18 => array( //A ( must follow
|
|
||||||
// Date-time functions distinguished from other keywords by the same name
|
|
||||||
"DATE", "DAY", "HOUR", "MICROSECOND", "MINUTE", "MONTH", "QUARTER",
|
|
||||||
"SECOND", "TIME", "WEEK", "YEAR"
|
|
||||||
),
|
|
||||||
19 => array(
|
|
||||||
// Comparison Functions
|
|
||||||
'COALESCE', 'GREATEST', 'ISNULL', 'LEAST',
|
|
||||||
),
|
|
||||||
20 => array( //A ( must follow
|
|
||||||
// Comparison functions distinguished from other keywords by the same name
|
|
||||||
"IN", "INTERVAL"
|
|
||||||
),
|
|
||||||
21 => array(
|
|
||||||
// Encryption and Compression Functions
|
|
||||||
'AES_DECRYPT', 'AES_ENCRYPT', 'COMPRESS', 'DECODE', 'DES_DECRYPT',
|
|
||||||
'DES_ENCRYPT', 'ENCODE', 'ENCRYPT', 'MD5', 'OLD_PASSWORD', 'PASSWORD',
|
|
||||||
'SHA1', 'SHA', 'UNCOMPRESS', 'UNCOMPRESSED_LENGTH',
|
|
||||||
),
|
|
||||||
22 => array(
|
|
||||||
// GROUP BY (aggregate) Functions
|
|
||||||
'AVG', 'BIT_AND', 'BIT_OR', 'BIT_XOR', 'COUNT', 'GROUP_CONCAT',
|
|
||||||
'MAX', 'MIN', 'STDDEV_POP', 'STDDEV_SAMP', 'STDDEV', 'STD', 'SUM',
|
|
||||||
'VAR_POP', 'VAR_SAMP', 'VARIANCE',
|
|
||||||
),
|
|
||||||
23 => array(
|
|
||||||
// Information Functions
|
|
||||||
'BENCHMARK', 'COERCIBILITY', 'COLLATION', 'CONNECTION_ID',
|
|
||||||
'FOUND_ROWS', 'LAST_INSERT_ID', 'ROW_COUNT',
|
|
||||||
'SESSION_USER', 'SYSTEM_USER', 'USER', 'VERSION',
|
|
||||||
),
|
|
||||||
24 => array( //A ( must follow
|
|
||||||
// Information functions distinguished from other keywords by the same name
|
|
||||||
"CURRENT_USER", "DATABASE", "SCHEMA", "CHARSET"
|
|
||||||
),
|
|
||||||
25 => array(
|
|
||||||
// Miscellaneous Functions
|
|
||||||
'ExtractValue', 'BIT_COUNT', 'GET_LOCK', 'INET_ATON', 'INET_NTOA',
|
|
||||||
'IS_FREE_LOCK', 'IS_USED_LOCK', 'MASTER_POS_WAIT', 'NAME_CONST',
|
|
||||||
'RELEASE_LOCK', 'SLEEP', 'UpdateXML', 'UUID',
|
|
||||||
),
|
|
||||||
26 => array( //A ( must follow
|
|
||||||
// Miscellaneous function distinguished from other keyword by the same name
|
|
||||||
"DEFAULT"
|
|
||||||
),
|
|
||||||
27 => array(
|
|
||||||
// Geometry Functions
|
|
||||||
'Area', 'AsBinary', 'AsText', 'AsWKB', 'AsWKT', 'Boundary', 'Buffer',
|
|
||||||
'Centroid', 'Contains', 'ConvexHull', 'Crosses',
|
|
||||||
'Difference', 'Dimension', 'Disjoint', 'Distance',
|
|
||||||
'EndPoint', 'Envelope', 'Equals', 'ExteriorRing',
|
|
||||||
'GLength', 'GeomCollFromText', 'GeomCollFromWKB', 'GeomFromText',
|
|
||||||
'GeomFromWKB', 'GeometryCollectionFromText',
|
|
||||||
'GeometryCollectionFromWKB', 'GeometryFromText', 'GeometryFromWKB',
|
|
||||||
'GeometryN', 'GeometryType',
|
|
||||||
'InteriorRingN', 'Intersection', 'Intersects', 'IsClosed', 'IsEmpty',
|
|
||||||
'IsRing', 'IsSimple',
|
|
||||||
'LineFromText', 'LineFromWKB', 'LineStringFromText',
|
|
||||||
'LineStringFromWKB',
|
|
||||||
'MBRContains', 'MBRDisjoint', 'MBREqual', 'MBRIntersects',
|
|
||||||
'MBROverlaps', 'MBRTouches', 'MBRWithin', 'MLineFromText',
|
|
||||||
'MLineFromWKB', 'MPointFromText', 'MPointFromWKB', 'MPolyFromText',
|
|
||||||
'MPolyFromWKB', 'MultiLineStringFromText', 'MultiLineStringFromWKB',
|
|
||||||
'MultiPointFromText', 'MultiPointFromWKB', 'MultiPolygonFromText',
|
|
||||||
'MultiPolygonFromWKB',
|
|
||||||
'NumGeometries', 'NumInteriorRings', 'NumPoints',
|
|
||||||
'Overlaps',
|
|
||||||
'PointFromText', 'PointFromWKB', 'PointN', 'PointOnSurface',
|
|
||||||
'PolyFromText', 'PolyFromWKB', 'PolygonFromText', 'PolygonFromWKB',
|
|
||||||
'Related', 'SRID', 'StartPoint', 'SymDifference',
|
|
||||||
'Touches',
|
|
||||||
'Union',
|
|
||||||
'Within',
|
|
||||||
'X',
|
|
||||||
'Y',
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'SYMBOLS' => array(
|
|
||||||
1 => array(
|
|
||||||
/* Operators */
|
|
||||||
'=', ':=', // assignment operators
|
|
||||||
'||', '&&', '!', // locical operators
|
|
||||||
'=', '<=>', '>=', '>', '<=', '<', '<>', '!=', // comparison operators
|
|
||||||
'|', '&', '^', '~', '<<', '>>', // bitwise operators
|
|
||||||
'-', '+', '*', '/', '%', // numerical operators
|
|
||||||
),
|
|
||||||
2 => array(
|
|
||||||
/* Other syntactical symbols */
|
|
||||||
'(', ')',
|
|
||||||
',', ';',
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'CASE_SENSITIVE' => array(
|
|
||||||
GESHI_COMMENTS => false,
|
|
||||||
1 => false,
|
|
||||||
2 => false,
|
|
||||||
3 => false,
|
|
||||||
4 => false,
|
|
||||||
5 => false,
|
|
||||||
6 => false,
|
|
||||||
7 => false,
|
|
||||||
8 => false,
|
|
||||||
9 => false,
|
|
||||||
10 => false,
|
|
||||||
11 => false,
|
|
||||||
12 => false,
|
|
||||||
13 => false,
|
|
||||||
14 => false,
|
|
||||||
15 => false,
|
|
||||||
16 => false,
|
|
||||||
17 => false,
|
|
||||||
18 => false,
|
|
||||||
19 => false,
|
|
||||||
20 => false,
|
|
||||||
21 => false,
|
|
||||||
22 => false,
|
|
||||||
23 => false,
|
|
||||||
24 => false,
|
|
||||||
25 => false,
|
|
||||||
26 => false,
|
|
||||||
27 => false,
|
|
||||||
),
|
|
||||||
'STYLES' => array(
|
|
||||||
'KEYWORDS' => array(
|
|
||||||
1 => 'color: #990099; font-weight: bold;', // mix
|
|
||||||
2 => 'color: #990099; font-weight: bold;', // mix
|
|
||||||
3 => 'color: #9900FF; font-weight: bold;', // constants
|
|
||||||
4 => 'color: #999900; font-weight: bold;', // column data types
|
|
||||||
5 => 'color: #999900; font-weight: bold;', // column data types
|
|
||||||
6 => 'color: #FF9900; font-weight: bold;', // attributes
|
|
||||||
7 => 'color: #FF9900; font-weight: bold;', // attributes
|
|
||||||
8 => 'color: #9900FF; font-weight: bold;', // date-time units
|
|
||||||
9 => 'color: #9900FF; font-weight: bold;', // date-time units
|
|
||||||
|
|
||||||
10 => 'color: #CC0099; font-weight: bold;', // operators
|
|
||||||
11 => 'color: #CC0099; font-weight: bold;', // operators
|
|
||||||
|
|
||||||
12 => 'color: #009900;', // control flow (functions)
|
|
||||||
13 => 'color: #000099;', // string functions
|
|
||||||
14 => 'color: #000099;', // string functions
|
|
||||||
15 => 'color: #000099;', // numeric functions
|
|
||||||
16 => 'color: #000099;', // numeric functions
|
|
||||||
17 => 'color: #000099;', // date-time functions
|
|
||||||
18 => 'color: #000099;', // date-time functions
|
|
||||||
19 => 'color: #000099;', // comparison functions
|
|
||||||
20 => 'color: #000099;', // comparison functions
|
|
||||||
21 => 'color: #000099;', // encryption functions
|
|
||||||
22 => 'color: #000099;', // aggregate functions
|
|
||||||
23 => 'color: #000099;', // information functions
|
|
||||||
24 => 'color: #000099;', // information functions
|
|
||||||
25 => 'color: #000099;', // miscellaneous functions
|
|
||||||
26 => 'color: #000099;', // miscellaneous functions
|
|
||||||
27 => 'color: #00CC00;', // geometry functions
|
|
||||||
),
|
|
||||||
'COMMENTS' => array(
|
|
||||||
'MULTI' => 'color: #808000; font-style: italic;',
|
|
||||||
1 => 'color: #808080; font-style: italic;',
|
|
||||||
2 => 'color: #808080; font-style: italic;'
|
|
||||||
),
|
|
||||||
'ESCAPE_CHAR' => array(
|
|
||||||
0 => 'color: #004000; font-weight: bold;',
|
|
||||||
1 => 'color: #008080; font-weight: bold;' // search wildcards
|
|
||||||
),
|
|
||||||
'BRACKETS' => array(
|
|
||||||
0 => 'color: #FF00FF;'
|
|
||||||
),
|
|
||||||
'STRINGS' => array(
|
|
||||||
0 => 'color: #008000;'
|
|
||||||
),
|
|
||||||
'NUMBERS' => array(
|
|
||||||
0 => 'color: #008080;'
|
|
||||||
),
|
|
||||||
'METHODS' => array(),
|
|
||||||
'SYMBOLS' => array(
|
|
||||||
1 => 'color: #CC0099;', // operators
|
|
||||||
2 => 'color: #000033;', // syntax
|
|
||||||
),
|
|
||||||
'SCRIPT' => array(),
|
|
||||||
'REGEXPS' => array()
|
|
||||||
),
|
|
||||||
'URLS' => array(
|
|
||||||
1 => 'http://search.oracle.com/search/search?group=MySQL&q={FNAME}',
|
|
||||||
2 => 'http://search.oracle.com/search/search?group=MySQL&q={FNAME}',
|
|
||||||
3 => 'http://search.oracle.com/search/search?group=MySQL&q={FNAME}',
|
|
||||||
4 => 'http://search.oracle.com/search/search?group=MySQL&q={FNAME}',
|
|
||||||
5 => 'http://search.oracle.com/search/search?group=MySQL&q={FNAME}',
|
|
||||||
6 => 'http://search.oracle.com/search/search?group=MySQL&q={FNAME}',
|
|
||||||
7 => 'http://search.oracle.com/search/search?group=MySQL&q={FNAME}',
|
|
||||||
8 => 'http://search.oracle.com/search/search?group=MySQL&q={FNAME}',
|
|
||||||
9 => 'http://search.oracle.com/search/search?group=MySQL&q={FNAME}',
|
|
||||||
|
|
||||||
10 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/non-typed-operators.html',
|
|
||||||
11 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/non-typed-operators.html',
|
|
||||||
|
|
||||||
12 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/control-flow-functions.html',
|
|
||||||
13 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/string-functions.html',
|
|
||||||
14 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/string-functions.html',
|
|
||||||
15 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/numeric-functions.html',
|
|
||||||
16 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/numeric-functions.html',
|
|
||||||
17 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/date-and-time-functions.html',
|
|
||||||
18 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/date-and-time-functions.html',
|
|
||||||
19 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/comparison-operators.html',
|
|
||||||
20 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/comparison-operators.html',
|
|
||||||
21 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/encryption-functions.html',
|
|
||||||
22 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/group-by-functions-and-modifiers.html',
|
|
||||||
23 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/information-functions.html',
|
|
||||||
24 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/information-functions.html',
|
|
||||||
25 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/func-op-summary-ref.html',
|
|
||||||
26 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/func-op-summary-ref.html',
|
|
||||||
27 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/analysing-spatial-information.html',
|
|
||||||
),
|
|
||||||
'OOLANG' => false,
|
|
||||||
'OBJECT_SPLITTERS' => array(),
|
|
||||||
'REGEXPS' => array(),
|
|
||||||
'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
|
||||||
'SCRIPT_DELIMITERS' => array(),
|
|
||||||
'HIGHLIGHT_STRICT_BLOCK' => array(),
|
|
||||||
'TAB_WIDTH' => 4,
|
|
||||||
'PARSER_CONTROL' => array(
|
|
||||||
'KEYWORDS' => array(
|
|
||||||
2 => array(
|
|
||||||
'DISALLOWED_AFTER' => '(?![\(\w])'
|
|
||||||
),
|
|
||||||
5 => array(
|
|
||||||
'DISALLOWED_AFTER' => '(?![\(\w])'
|
|
||||||
),
|
|
||||||
7 => array(
|
|
||||||
'DISALLOWED_AFTER' => '(?![\(\w])'
|
|
||||||
),
|
|
||||||
9 => array(
|
|
||||||
'DISALLOWED_AFTER' => '(?![\(\w])'
|
|
||||||
),
|
|
||||||
11 => array(
|
|
||||||
'DISALLOWED_AFTER' => '(?![\(\w])'
|
|
||||||
),
|
|
||||||
|
|
||||||
14 => array(
|
|
||||||
'DISALLOWED_AFTER' => '(?=\()'
|
|
||||||
),
|
|
||||||
16 => array(
|
|
||||||
'DISALLOWED_AFTER' => '(?=\()'
|
|
||||||
),
|
|
||||||
18 => array(
|
|
||||||
'DISALLOWED_AFTER' => '(?=\()'
|
|
||||||
),
|
|
||||||
20 => array(
|
|
||||||
'DISALLOWED_AFTER' => '(?=\()'
|
|
||||||
),
|
|
||||||
24 => array(
|
|
||||||
'DISALLOWED_AFTER' => '(?=\()'
|
|
||||||
),
|
|
||||||
26 => array(
|
|
||||||
'DISALLOWED_AFTER' => '(?=\()'
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
|
|
@ -1,107 +0,0 @@
|
||||||
<?php
|
|
||||||
/*
|
|
||||||
Plugin Name: Markdown Geshi
|
|
||||||
Plugin URI: http://github.com/drm/Markdown_Geshi
|
|
||||||
Description: <a href="http://daringfireball.net/projects/markdown/syntax">Markdown syntax</a> with GeSHi code highlighting added.
|
|
||||||
Version: 0.2
|
|
||||||
Author: Gerard van Helden
|
|
||||||
Author URI: http://melp.nl
|
|
||||||
*/
|
|
||||||
define('MARKDOWN_PARSER_CLASS', 'MarkdownGeshi_Parser');
|
|
||||||
|
|
||||||
require_once 'pastedown.php';
|
|
||||||
require_once 'wp-syntax/geshi/geshi.php';
|
|
||||||
|
|
||||||
class MarkdownGeshi_Parser extends MarkdownExtra_Parser {
|
|
||||||
/**
|
|
||||||
* The 'processing instruction' pattern for the code blocks parser.
|
|
||||||
* Format is defined as : #!language@linenumber. The @linenumber
|
|
||||||
* part is optional.
|
|
||||||
*
|
|
||||||
* Optional parameters are allowed past a semicolon.
|
|
||||||
*/
|
|
||||||
public $shebang = '/^
|
|
||||||
\s*
|
|
||||||
\#!(?P<lang>\w+)
|
|
||||||
(?:@(?P<linenumber>\d+))?
|
|
||||||
\s*
|
|
||||||
(?:;\s*(?P<params>.*?)\s*)?\n
|
|
||||||
(?P<code>.*)
|
|
||||||
/sx';
|
|
||||||
|
|
||||||
function hasShebang($code) {
|
|
||||||
if (preg_match($this->shebang, $code, $m)) {
|
|
||||||
return $m;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function _doCodeBlocks_callback($matches) {
|
|
||||||
if ($m = $this->hasShebang($matches[1])) {
|
|
||||||
return $this->_doGeshi($m);
|
|
||||||
} else {
|
|
||||||
return parent::_doCodeBlocks_callback($matches);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _doFencedCodeBlocks_callback($matches) {
|
|
||||||
if ($m = $this->hasShebang($matches[2])) {
|
|
||||||
return $this->_doGeshi($m);
|
|
||||||
} else {
|
|
||||||
return parent::_doFencedCodeBlocks_callback($matches);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _doGeshi($shebangMatch) {
|
|
||||||
$language = $shebangMatch['lang'];
|
|
||||||
$line = (int)(($shebangMatch['linenumber'] > 1) ? $shebangMatch['linenumber'] : 0);
|
|
||||||
$codeblock = $shebangMatch['code'];
|
|
||||||
|
|
||||||
$highlighter = new GeSHi($this->outdent(trim($codeblock)), $language);
|
|
||||||
$highlighted = $highlighter->parse_code();
|
|
||||||
if ($line) {
|
|
||||||
preg_match('!^(\s*<pre[^>]+>)(.*)(</pre>)!s', $highlighted, $m);
|
|
||||||
|
|
||||||
$ret = '<ol';
|
|
||||||
if ($line) {
|
|
||||||
$ret .= ' start="' . $line . '"';
|
|
||||||
}
|
|
||||||
$ret .= '>';
|
|
||||||
$ret .= preg_replace(
|
|
||||||
'/.+(\n|$)/',
|
|
||||||
'<li>$0</li>',
|
|
||||||
$m[2]
|
|
||||||
);
|
|
||||||
$ret .= '</ol>';
|
|
||||||
|
|
||||||
$ret = $m[1] . $ret . $m[3];
|
|
||||||
} else {
|
|
||||||
$ret = $highlighted;
|
|
||||||
}
|
|
||||||
if ($shebangMatch['params']) {
|
|
||||||
$ret = $this->_processGeshiParams($ret, $shebangMatch['params']);
|
|
||||||
}
|
|
||||||
|
|
||||||
return "\n\n" . $this->hashBlock($ret) . "\n\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function _processGeshiParams($highlighted, $params) {
|
|
||||||
foreach (explode(',', $params) as $keyValuePair) {
|
|
||||||
@list($key, $value) = array_map('trim', explode('=', $keyValuePair));
|
|
||||||
if ($key && $value) {
|
|
||||||
switch ($key) {
|
|
||||||
case 'gist':
|
|
||||||
$highlighted =
|
|
||||||
sprintf(
|
|
||||||
'<cite class="gist">(GIST: <a href="https://gist.github.com/%1$d" target="_blank">%1$d</a>)</cite>',
|
|
||||||
$value
|
|
||||||
)
|
|
||||||
. $highlighted;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $highlighted;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,128 +0,0 @@
|
||||||
<?php
|
|
||||||
/*************************************************************************************
|
|
||||||
* example.php
|
|
||||||
* --------
|
|
||||||
* Author: Benny Baumann (BenBE@geshi.org)
|
|
||||||
* Copyright: (c) 2020 Benny Baumann (http://qbnz.com/highlighter/)
|
|
||||||
* Release Version: 1.0.8.11-wmf1
|
|
||||||
* Date Started: 2020/11/02
|
|
||||||
*
|
|
||||||
* Example language file for GeSHi.
|
|
||||||
*
|
|
||||||
* CHANGES
|
|
||||||
* -------
|
|
||||||
* 2020/11/02 (1.0.8.11-wmf1)
|
|
||||||
* - First Release
|
|
||||||
*
|
|
||||||
* TODO (updated 2020/11/02)
|
|
||||||
* -------------------------
|
|
||||||
* * Complete language file
|
|
||||||
*
|
|
||||||
*************************************************************************************
|
|
||||||
*
|
|
||||||
* This file is part of GeSHi.
|
|
||||||
*
|
|
||||||
* GeSHi is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* GeSHi is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with GeSHi; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
$language_data = array(
|
|
||||||
'LANG_NAME' => 'Example',
|
|
||||||
'COMMENT_SINGLE' => array(
|
|
||||||
1 => '>',
|
|
||||||
2 => '<',
|
|
||||||
3 => '**',
|
|
||||||
4 => '###',
|
|
||||||
5 => '##',
|
|
||||||
6 => '@',
|
|
||||||
7 => '++',
|
|
||||||
|
|
||||||
),
|
|
||||||
'COMMENT_MULTI' => array(
|
|
||||||
'_' => '_'
|
|
||||||
),
|
|
||||||
'COMMENT_REGEXP' => array(
|
|
||||||
1 => ''
|
|
||||||
),
|
|
||||||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
|
|
||||||
'QUOTEMARKS' => array(
|
|
||||||
1 => '',
|
|
||||||
2 => ''
|
|
||||||
),
|
|
||||||
'ESCAPE_CHAR' => '',
|
|
||||||
'ESCAPE_REGEXP' => array(
|
|
||||||
1 => '',
|
|
||||||
2 => ''
|
|
||||||
),
|
|
||||||
'HARDQUOTE' => array(),
|
|
||||||
'HARDESCAPE' => array(),
|
|
||||||
'HARDCHAR' => '',
|
|
||||||
'NUMBERS' =>
|
|
||||||
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX |
|
|
||||||
GESHI_NUMBER_FLT_SCI_ZERO,
|
|
||||||
'KEYWORDS' => array(
|
|
||||||
1 => array(
|
|
||||||
''
|
|
||||||
)
|
|
||||||
),
|
|
||||||
'CASE_SENSITIVE' => array(
|
|
||||||
1 => false
|
|
||||||
),
|
|
||||||
'SYMBOLS' => array(
|
|
||||||
0 => array(
|
|
||||||
'>'
|
|
||||||
)
|
|
||||||
),
|
|
||||||
'STYLES' => array(
|
|
||||||
'KEYWORDS' => array(
|
|
||||||
1 => ''
|
|
||||||
),
|
|
||||||
'COMMENTS' => array(
|
|
||||||
1 => 'font-style: normal; color: #789922;',
|
|
||||||
2 => 'font-weight: normal; color: #991111;',
|
|
||||||
3 => 'font-weight: bold; color: #000;',
|
|
||||||
4 => 'font-size: 25px; font-weight: bold; color: #000;',
|
|
||||||
5 => 'font-size: 35px; font-weight: bold; color: #000;',
|
|
||||||
6 => 'color: #440088;',
|
|
||||||
7 => 'border: 3px dotted #000;',
|
|
||||||
'MULTI' => 'text-decoration: underline;color: #000;'
|
|
||||||
),
|
|
||||||
'ESCAPE_CHAR' => array(
|
|
||||||
1 => '',
|
|
||||||
2 => ''
|
|
||||||
),
|
|
||||||
'BRACKETS' => array(),
|
|
||||||
'STRINGS' => array(
|
|
||||||
1 => '',
|
|
||||||
2 => ''
|
|
||||||
),
|
|
||||||
'NUMBERS' => array(),
|
|
||||||
'METHODS' => array(),
|
|
||||||
'SYMBOLS' => array(
|
|
||||||
0 => 'font-style: italic; color: #789922;'
|
|
||||||
),
|
|
||||||
'REGEXPS' => array(),
|
|
||||||
'SCRIPT' => array()
|
|
||||||
),
|
|
||||||
'URLS' => array(
|
|
||||||
1 => ''
|
|
||||||
),
|
|
||||||
'OOLANG' => false,
|
|
||||||
'OBJECT_SPLITTERS' => array(),
|
|
||||||
'REGEXPS' => array(),
|
|
||||||
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
|
|
||||||
'SCRIPT_DELIMITERS' => array(),
|
|
||||||
'HIGHLIGHT_STRICT_BLOCK' => array(),
|
|
||||||
'TAB_WIDTH' => 4
|
|
||||||
);
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,82 +0,0 @@
|
||||||
<?php
|
|
||||||
/*************************************************************************************
|
|
||||||
* text.php
|
|
||||||
* --------
|
|
||||||
* Author: Sean Hanna (smokingrope@gmail.com)
|
|
||||||
* Copyright: (c) 2006 Sean Hanna
|
|
||||||
* Release Version: 1.0.8.12
|
|
||||||
* Date Started: 04/23/2006
|
|
||||||
*
|
|
||||||
* Standard Text File (No Syntax Highlighting).
|
|
||||||
* Plaintext language file for GeSHi.
|
|
||||||
*
|
|
||||||
* CHANGES
|
|
||||||
* -------
|
|
||||||
* 04/23/2006 (0.5.0)
|
|
||||||
* - Syntax File Created
|
|
||||||
*
|
|
||||||
* 04/27/2006 (1.0.0)
|
|
||||||
* - Documentation Cleaned Up
|
|
||||||
* - First Release
|
|
||||||
*
|
|
||||||
* TODO (updated 04/27/2006)
|
|
||||||
* -------------------------
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*************************************************************************************
|
|
||||||
*
|
|
||||||
* This file is part of GeSHi.
|
|
||||||
*
|
|
||||||
* GeSHi is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* GeSHi is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with GeSHi; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
$language_data = array(
|
|
||||||
'LANG_NAME' => 'Text',
|
|
||||||
'COMMENT_SINGLE' => array(),
|
|
||||||
'COMMENT_MULTI' => array(),
|
|
||||||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
|
|
||||||
'QUOTEMARKS' => array(),
|
|
||||||
'ESCAPE_CHAR' => '',
|
|
||||||
'KEYWORDS' => array(),
|
|
||||||
'SYMBOLS' => array(),
|
|
||||||
'CASE_SENSITIVE' => array(
|
|
||||||
GESHI_COMMENTS => false
|
|
||||||
),
|
|
||||||
'STYLES' => array(
|
|
||||||
'KEYWORDS' => array(),
|
|
||||||
'COMMENTS' => array(),
|
|
||||||
'ESCAPE_CHAR' => array(),
|
|
||||||
'BRACKETS' => array(),
|
|
||||||
'STRINGS' => array(),
|
|
||||||
'NUMBERS' => array(),
|
|
||||||
'METHODS' => array(),
|
|
||||||
'SYMBOLS' => array(),
|
|
||||||
'SCRIPT' => array(),
|
|
||||||
'REGEXPS' => array()
|
|
||||||
),
|
|
||||||
'URLS' => array(),
|
|
||||||
'OOLANG' => false,
|
|
||||||
'OBJECT_SPLITTERS' => array(),
|
|
||||||
'REGEXPS' => array(),
|
|
||||||
'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
|
||||||
'SCRIPT_DELIMITERS' => array(),
|
|
||||||
'HIGHLIGHT_STRICT_BLOCK' => array(),
|
|
||||||
'PARSER_CONTROL' => array(
|
|
||||||
'ENABLE_FLAGS' => array(
|
|
||||||
'ALL' => GESHI_NEVER
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
|
|
@ -1,237 +0,0 @@
|
||||||
<?php
|
|
||||||
/*************************************************************************************
|
|
||||||
* python.php
|
|
||||||
* ----------
|
|
||||||
* Author: Roberto Rossi (rsoftware@altervista.org)
|
|
||||||
* Copyright: (c) 2004 Roberto Rossi (http://rsoftware.altervista.org), Nigel McNie (http://qbnz.com/highlighter)
|
|
||||||
* Release Version: 1.0.8.12
|
|
||||||
* Date Started: 2004/08/30
|
|
||||||
*
|
|
||||||
* Python language file for GeSHi.
|
|
||||||
*
|
|
||||||
* CHANGES
|
|
||||||
* -------
|
|
||||||
* 2008/12/18
|
|
||||||
* - Added missing functions and keywords. Also added two new Python 3.0 types. SF#2441839
|
|
||||||
* 2005/05/26
|
|
||||||
* - Modifications by Tim (tim@skreak.com): added more keyword categories, tweaked colors
|
|
||||||
* 2004/11/27 (1.0.1)
|
|
||||||
* - Added support for multiple object splitters
|
|
||||||
* 2004/08/30 (1.0.0)
|
|
||||||
* - First Release
|
|
||||||
*
|
|
||||||
* TODO (updated 2004/11/27)
|
|
||||||
* -------------------------
|
|
||||||
*
|
|
||||||
*************************************************************************************
|
|
||||||
*
|
|
||||||
* This file is part of GeSHi.
|
|
||||||
*
|
|
||||||
* GeSHi is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* GeSHi is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with GeSHi; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
$language_data = array(
|
|
||||||
'LANG_NAME' => 'Python',
|
|
||||||
'COMMENT_SINGLE' => array(1 => '#'),
|
|
||||||
'COMMENT_MULTI' => array(),
|
|
||||||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
|
|
||||||
//Longest quotemarks ALWAYS first
|
|
||||||
'QUOTEMARKS' => array('"""', "'''", '"', "'"),
|
|
||||||
'ESCAPE_CHAR' => '\\',
|
|
||||||
'NUMBERS' =>
|
|
||||||
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_BIN_PREFIX_0B |
|
|
||||||
GESHI_NUMBER_OCT_PREFIX_0O | GESHI_NUMBER_HEX_PREFIX |
|
|
||||||
GESHI_NUMBER_FLT_NONSCI | GESHI_NUMBER_FLT_NONSCI_F |
|
|
||||||
GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
|
|
||||||
'KEYWORDS' => array(
|
|
||||||
|
|
||||||
/*
|
|
||||||
** Set 1: reserved words
|
|
||||||
** http://python.org/doc/current/ref/keywords.html
|
|
||||||
*/
|
|
||||||
1 => array(
|
|
||||||
'and', 'del', 'for', 'is', 'raise', 'assert', 'elif', 'from', 'lambda', 'return', 'break',
|
|
||||||
'else', 'global', 'not', 'try', 'class', 'except', 'if', 'or', 'while', 'continue', 'exec',
|
|
||||||
'import', 'pass', 'yield', 'def', 'finally', 'in', 'print', 'with', 'as', 'nonlocal'
|
|
||||||
),
|
|
||||||
|
|
||||||
/*
|
|
||||||
** Set 2: builtins
|
|
||||||
** http://python.org/doc/current/lib/built-in-funcs.html
|
|
||||||
*/
|
|
||||||
2 => array(
|
|
||||||
'__import__', 'abs', 'basestring', 'bool', 'callable', 'chr', 'classmethod', 'cmp',
|
|
||||||
'compile', 'complex', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'execfile',
|
|
||||||
'file', 'filter', 'float', 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'help',
|
|
||||||
'hex', 'id', 'input', 'int', 'isinstance', 'issubclass', 'iter', 'len', 'list', 'locals',
|
|
||||||
'long', 'map', 'max', 'min', 'object', 'oct', 'open', 'ord', 'pow', 'property', 'range',
|
|
||||||
'raw_input', 'reduce', 'reload', 'reversed', 'round', 'set', 'setattr', 'slice',
|
|
||||||
'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'unichr', 'unicode',
|
|
||||||
'vars', 'xrange', 'zip',
|
|
||||||
// Built-in constants: http://python.org/doc/current/lib/node35.html
|
|
||||||
'False', 'True', 'None', 'NotImplemented', 'Ellipsis',
|
|
||||||
// Built-in Exceptions: http://python.org/doc/current/lib/module-exceptions.html
|
|
||||||
'Exception', 'StandardError', 'ArithmeticError', 'LookupError', 'EnvironmentError',
|
|
||||||
'AssertionError', 'AttributeError', 'EOFError', 'FloatingPointError', 'IOError',
|
|
||||||
'ImportError', 'IndexError', 'KeyError', 'KeyboardInterrupt', 'MemoryError', 'NameError',
|
|
||||||
'NotImplementedError', 'OSError', 'OverflowError', 'ReferenceError', 'RuntimeError',
|
|
||||||
'StopIteration', 'SyntaxError', 'SystemError', 'SystemExit', 'TypeError',
|
|
||||||
'UnboundlocalError', 'UnicodeError', 'UnicodeEncodeError', 'UnicodeDecodeError',
|
|
||||||
'UnicodeTranslateError', 'ValueError', 'WindowsError', 'ZeroDivisionError', 'Warning',
|
|
||||||
'UserWarning', 'DeprecationWarning', 'PendingDeprecationWarning', 'SyntaxWarning',
|
|
||||||
'RuntimeWarning', 'FutureWarning',
|
|
||||||
// self: this is a common python convention (but not a reserved word)
|
|
||||||
'self',
|
|
||||||
// other
|
|
||||||
'any', 'all'
|
|
||||||
),
|
|
||||||
|
|
||||||
/*
|
|
||||||
** Set 3: standard library
|
|
||||||
** http://python.org/doc/current/lib/modindex.html
|
|
||||||
*/
|
|
||||||
3 => array(
|
|
||||||
'__builtin__', '__future__', '__main__', '_winreg', 'aifc', 'AL', 'al', 'anydbm',
|
|
||||||
'array', 'asynchat', 'asyncore', 'atexit', 'audioop', 'base64', 'BaseHTTPServer',
|
|
||||||
'Bastion', 'binascii', 'binhex', 'bisect', 'bsddb', 'bz2', 'calendar', 'cd', 'cgi',
|
|
||||||
'CGIHTTPServer', 'cgitb', 'chunk', 'cmath', 'cmd', 'code', 'codecs', 'codeop',
|
|
||||||
'collections', 'colorsys', 'commands', 'compileall', 'compiler',
|
|
||||||
'ConfigParser', 'Cookie', 'cookielib', 'copy', 'copy_reg', 'cPickle', 'crypt',
|
|
||||||
'cStringIO', 'csv', 'curses', 'datetime', 'dbhash', 'dbm', 'decimal', 'DEVICE',
|
|
||||||
'difflib', 'dircache', 'dis', 'distutils', 'dl', 'doctest', 'DocXMLRPCServer', 'dumbdbm',
|
|
||||||
'dummy_thread', 'dummy_threading', 'email', 'encodings', 'errno', 'exceptions', 'fcntl',
|
|
||||||
'filecmp', 'fileinput', 'FL', 'fl', 'flp', 'fm', 'fnmatch', 'formatter', 'fpectl',
|
|
||||||
'fpformat', 'ftplib', 'gc', 'gdbm', 'getopt', 'getpass', 'gettext', 'GL', 'gl', 'glob',
|
|
||||||
'gopherlib', 'grp', 'gzip', 'heapq', 'hmac', 'hotshot', 'htmlentitydefs', 'htmllib',
|
|
||||||
'HTMLParser', 'httplib', 'imageop', 'imaplib', 'imgfile', 'imghdr', 'imp', 'inspect',
|
|
||||||
'itertools', 'jpeg', 'keyword', 'linecache', 'locale', 'logging', 'mailbox', 'mailcap',
|
|
||||||
'marshal', 'math', 'md5', 'mhlib', 'mimetools', 'mimetypes', 'MimeWriter', 'mimify',
|
|
||||||
'mmap', 'msvcrt', 'multifile', 'mutex', 'netrc', 'new', 'nis', 'nntplib', 'operator',
|
|
||||||
'optparse', 'os', 'ossaudiodev', 'parser', 'pdb', 'pickle', 'pickletools', 'pipes',
|
|
||||||
'pkgutil', 'platform', 'popen2', 'poplib', 'posix', 'posixfile', 'pprint', 'profile',
|
|
||||||
'pstats', 'pty', 'pwd', 'py_compile', 'pyclbr', 'pydoc', 'Queue', 'quopri', 'random',
|
|
||||||
're', 'readline', 'repr', 'resource', 'rexec', 'rfc822', 'rgbimg', 'rlcompleter',
|
|
||||||
'robotparser', 'sched', 'ScrolledText', 'select', 'sets', 'sgmllib', 'sha', 'shelve',
|
|
||||||
'shlex', 'shutil', 'signal', 'SimpleHTTPServer', 'SimpleXMLRPCServer', 'site', 'smtpd',
|
|
||||||
'smtplib', 'sndhdr', 'socket', 'SocketServer', 'stat', 'statcache', 'statvfs', 'string',
|
|
||||||
'StringIO', 'stringprep', 'struct', 'subprocess', 'sunau', 'SUNAUDIODEV', 'sunaudiodev',
|
|
||||||
'symbol', 'sys', 'syslog', 'tabnanny', 'tarfile', 'telnetlib', 'tempfile', 'termios',
|
|
||||||
'test', 'textwrap', 'thread', 'threading', 'time', 'timeit', 'Tix', 'Tkinter', 'token',
|
|
||||||
'tokenize', 'traceback', 'tty', 'turtle', 'types', 'unicodedata', 'unittest', 'urllib2',
|
|
||||||
'urllib', 'urlparse', 'user', 'UserDict', 'UserList', 'UserString', 'uu', 'warnings',
|
|
||||||
'wave', 'weakref', 'webbrowser', 'whichdb', 'whrandom', 'winsound', 'xdrlib', 'xml',
|
|
||||||
'xmllib', 'xmlrpclib', 'zipfile', 'zipimport', 'zlib',
|
|
||||||
// Python 3.0
|
|
||||||
'bytes', 'bytearray'
|
|
||||||
),
|
|
||||||
|
|
||||||
/*
|
|
||||||
** Set 4: special methods
|
|
||||||
** http://python.org/doc/current/ref/specialnames.html
|
|
||||||
*/
|
|
||||||
4 => array(
|
|
||||||
/*
|
|
||||||
// Iterator types: http://python.org/doc/current/lib/typeiter.html
|
|
||||||
'__iter__', 'next',
|
|
||||||
// String types: http://python.org/doc/current/lib/string-methods.html
|
|
||||||
'capitalize', 'center', 'count', 'decode', 'encode', 'endswith', 'expandtabs',
|
|
||||||
'find', 'index', 'isalnum', 'isalpha', 'isdigit', 'islower', 'isspace', 'istitle',
|
|
||||||
'isupper', 'join', 'ljust', 'lower', 'lstrip', 'replace', 'rfind', 'rindex', 'rjust',
|
|
||||||
'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title',
|
|
||||||
'translate', 'upper', 'zfill',
|
|
||||||
*/
|
|
||||||
// Basic customization: http://python.org/doc/current/ref/customization.html
|
|
||||||
'__new__', '__init__', '__del__', '__repr__', '__str__',
|
|
||||||
'__lt__', '__le__', '__eq__', '__ne__', '__gt__', '__ge__', '__cmp__', '__rcmp__',
|
|
||||||
'__hash__', '__nonzero__', '__unicode__', '__dict__',
|
|
||||||
// Attribute access: http://python.org/doc/current/ref/attribute-access.html
|
|
||||||
'__setattr__', '__delattr__', '__getattr__', '__getattribute__', '__get__', '__set__',
|
|
||||||
'__delete__', '__slots__',
|
|
||||||
// Class creation, callable objects
|
|
||||||
'__metaclass__', '__call__',
|
|
||||||
// Container types: http://python.org/doc/current/ref/sequence-types.html
|
|
||||||
'__len__', '__getitem__', '__setitem__', '__delitem__', '__iter__', '__contains__',
|
|
||||||
'__getslice__', '__setslice__', '__delslice__',
|
|
||||||
// Numeric types: http://python.org/doc/current/ref/numeric-types.html
|
|
||||||
'__abs__', '__add__', '__and__', '__coerce__', '__div__', '__divmod__', '__float__',
|
|
||||||
'__hex__', '__iadd__', '__isub__', '__imod__', '__idiv__', '__ipow__', '__iand__',
|
|
||||||
'__ior__', '__ixor__', '__ilshift__', '__irshift__', '__invert__', '__int__',
|
|
||||||
'__long__', '__lshift__',
|
|
||||||
'__mod__', '__mul__', '__neg__', '__oct__', '__or__', '__pos__', '__pow__',
|
|
||||||
'__radd__', '__rdiv__', '__rdivmod__', '__rmod__', '__rpow__', '__rlshift__', '__rrshift__',
|
|
||||||
'__rshift__', '__rsub__', '__rmul__', '__rand__', '__rxor__', '__ror__',
|
|
||||||
'__sub__', '__xor__'
|
|
||||||
)
|
|
||||||
),
|
|
||||||
'SYMBOLS' => array(
|
|
||||||
'<', '>', '=', '!', '<=', '>=', //·comparison·operators
|
|
||||||
'~', '@', //·unary·operators
|
|
||||||
';', ',' //·statement·separator
|
|
||||||
),
|
|
||||||
'CASE_SENSITIVE' => array(
|
|
||||||
GESHI_COMMENTS => false,
|
|
||||||
1 => true,
|
|
||||||
2 => true,
|
|
||||||
3 => true,
|
|
||||||
4 => true
|
|
||||||
),
|
|
||||||
'STYLES' => array(
|
|
||||||
'KEYWORDS' => array(
|
|
||||||
1 => 'color: #ff7700;font-weight:bold;', // Reserved
|
|
||||||
2 => 'color: #008000;', // Built-ins + self
|
|
||||||
3 => 'color: #dc143c;', // Standard lib
|
|
||||||
4 => 'color: #0000cd;' // Special methods
|
|
||||||
),
|
|
||||||
'COMMENTS' => array(
|
|
||||||
1 => 'color: #808080; font-style: italic;',
|
|
||||||
'MULTI' => 'color: #808080; font-style: italic;'
|
|
||||||
),
|
|
||||||
'ESCAPE_CHAR' => array(
|
|
||||||
0 => 'color: #000099; font-weight: bold;'
|
|
||||||
),
|
|
||||||
'BRACKETS' => array(
|
|
||||||
0 => 'color: black;'
|
|
||||||
),
|
|
||||||
'STRINGS' => array(
|
|
||||||
0 => 'color: #483d8b;'
|
|
||||||
),
|
|
||||||
'NUMBERS' => array(
|
|
||||||
0 => 'color: #ff4500;'
|
|
||||||
),
|
|
||||||
'METHODS' => array(
|
|
||||||
1 => 'color: black;'
|
|
||||||
),
|
|
||||||
'SYMBOLS' => array(
|
|
||||||
0 => 'color: #66cc66;'
|
|
||||||
),
|
|
||||||
'REGEXPS' => array(),
|
|
||||||
'SCRIPT' => array()
|
|
||||||
),
|
|
||||||
'URLS' => array(
|
|
||||||
1 => '',
|
|
||||||
2 => '',
|
|
||||||
3 => '',
|
|
||||||
4 => ''
|
|
||||||
),
|
|
||||||
'OOLANG' => true,
|
|
||||||
'OBJECT_SPLITTERS' => array(
|
|
||||||
1 => '.'
|
|
||||||
),
|
|
||||||
'REGEXPS' => array(),
|
|
||||||
'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
|
||||||
'SCRIPT_DELIMITERS' => array(),
|
|
||||||
'HIGHLIGHT_STRICT_BLOCK' => array()
|
|
||||||
);
|
|
|
@ -1,82 +0,0 @@
|
||||||
<?php
|
|
||||||
/*************************************************************************************
|
|
||||||
* text.php
|
|
||||||
* --------
|
|
||||||
* Author: Sean Hanna (smokingrope@gmail.com)
|
|
||||||
* Copyright: (c) 2006 Sean Hanna
|
|
||||||
* Release Version: 1.0.8.12
|
|
||||||
* Date Started: 04/23/2006
|
|
||||||
*
|
|
||||||
* Standard Text File (No Syntax Highlighting).
|
|
||||||
* Plaintext language file for GeSHi.
|
|
||||||
*
|
|
||||||
* CHANGES
|
|
||||||
* -------
|
|
||||||
* 04/23/2006 (0.5.0)
|
|
||||||
* - Syntax File Created
|
|
||||||
*
|
|
||||||
* 04/27/2006 (1.0.0)
|
|
||||||
* - Documentation Cleaned Up
|
|
||||||
* - First Release
|
|
||||||
*
|
|
||||||
* TODO (updated 04/27/2006)
|
|
||||||
* -------------------------
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*************************************************************************************
|
|
||||||
*
|
|
||||||
* This file is part of GeSHi.
|
|
||||||
*
|
|
||||||
* GeSHi is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* GeSHi is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with GeSHi; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
$language_data = array(
|
|
||||||
'LANG_NAME' => 'Text',
|
|
||||||
'COMMENT_SINGLE' => array(),
|
|
||||||
'COMMENT_MULTI' => array(),
|
|
||||||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
|
|
||||||
'QUOTEMARKS' => array(),
|
|
||||||
'ESCAPE_CHAR' => '',
|
|
||||||
'KEYWORDS' => array(),
|
|
||||||
'SYMBOLS' => array(),
|
|
||||||
'CASE_SENSITIVE' => array(
|
|
||||||
GESHI_COMMENTS => false
|
|
||||||
),
|
|
||||||
'STYLES' => array(
|
|
||||||
'KEYWORDS' => array(),
|
|
||||||
'COMMENTS' => array(),
|
|
||||||
'ESCAPE_CHAR' => array(),
|
|
||||||
'BRACKETS' => array(),
|
|
||||||
'STRINGS' => array(),
|
|
||||||
'NUMBERS' => array(),
|
|
||||||
'METHODS' => array(),
|
|
||||||
'SYMBOLS' => array(),
|
|
||||||
'SCRIPT' => array(),
|
|
||||||
'REGEXPS' => array()
|
|
||||||
),
|
|
||||||
'URLS' => array(),
|
|
||||||
'OOLANG' => false,
|
|
||||||
'OBJECT_SPLITTERS' => array(),
|
|
||||||
'REGEXPS' => array(),
|
|
||||||
'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
|
||||||
'SCRIPT_DELIMITERS' => array(),
|
|
||||||
'HIGHLIGHT_STRICT_BLOCK' => array(),
|
|
||||||
'PARSER_CONTROL' => array(
|
|
||||||
'ENABLE_FLAGS' => array(
|
|
||||||
'ALL' => GESHI_NEVER
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
|
21
paste.php
21
paste.php
|
@ -168,27 +168,6 @@ if ($paste_code === "pastedown") {
|
||||||
$hl = new Highlighter();
|
$hl = new Highlighter();
|
||||||
$highlighted = $hl->highlight($paste_code == 'text' ? 'plaintext' : $paste_code, $p_content)->value;
|
$highlighted = $hl->highlight($paste_code == 'text' ? 'plaintext' : $paste_code, $p_content)->value;
|
||||||
$lines = HighlightUtilities\splitCodeIntoArray($highlighted);
|
$lines = HighlightUtilities\splitCodeIntoArray($highlighted);
|
||||||
//$highlight = new Highlighter();
|
|
||||||
//$p_content = $highlight->highlight($paste_code, $p_content)->value;
|
|
||||||
|
|
||||||
//$p_content = linkify($p_content);
|
|
||||||
|
|
||||||
$geshi = new GeSHi($p_content, $paste_code, 'includes/geshi/');
|
|
||||||
|
|
||||||
$geshi->enable_classes();
|
|
||||||
$geshi->set_header_type(GESHI_HEADER_DIV);
|
|
||||||
$geshi->set_line_style('color: #aaaaaa; width:auto;');
|
|
||||||
$geshi->set_code_style('color: #757584;');
|
|
||||||
if (count($highlight)) {
|
|
||||||
$geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS);
|
|
||||||
$geshi->highlight_lines_extra($highlight);
|
|
||||||
$geshi->set_highlight_lines_extra_style('color:#399bff;background:rgba(38,92,255,0.14);');
|
|
||||||
} else {
|
|
||||||
$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 2);
|
|
||||||
}
|
|
||||||
$p_content = $geshi->parse_code();
|
|
||||||
$style = $geshi->get_stylesheet();
|
|
||||||
$ges_style = '<style>' . $style . '</style>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Embed view after highlighting is applied so that $p_code is syntax highlighted as it should be.
|
// Embed view after highlighting is applied so that $p_code is syntax highlighted as it should be.
|
||||||
|
|
|
@ -15,13 +15,13 @@
|
||||||
.theme-switch-wrapper {
|
.theme-switch-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
em {
|
em {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
.theme-switch {
|
.theme-switch {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: 34px;
|
height: 34px;
|
||||||
|
@ -134,3 +134,7 @@ img [alt="www.000webhost.com"] {
|
||||||
.td-center {
|
.td-center {
|
||||||
text-align: center !important;
|
text-align: center !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.green .hljs-comment {
|
||||||
|
color: #789922;
|
||||||
|
}
|
|
@ -2,8 +2,17 @@
|
||||||
<link rel="stylesheet" href="theme/bulma/css/bulma-tagsinput.min.css"/>
|
<link rel="stylesheet" href="theme/bulma/css/bulma-tagsinput.min.css"/>
|
||||||
<script src="theme/bulma/js/bulma-tagsinput.min.js"></script>
|
<script src="theme/bulma/js/bulma-tagsinput.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
function preloaderFadeOutInit() {
|
||||||
|
document.querySelector('main').id = '';
|
||||||
|
document.querySelector('.preloader').classList.add('preloader-hidden');
|
||||||
|
}
|
||||||
|
|
||||||
function setupTagsInput() {
|
function setupTagsInput() {
|
||||||
|
preloaderFadeOutInit();
|
||||||
|
|
||||||
const tagsInput = document.getElementById('tags-with-source');
|
const tagsInput = document.getElementById('tags-with-source');
|
||||||
|
|
||||||
|
if (tagsInput) {
|
||||||
new BulmaTagsInput(tagsInput, {
|
new BulmaTagsInput(tagsInput, {
|
||||||
allowDuplicates: false,
|
allowDuplicates: false,
|
||||||
caseSensitive: false,
|
caseSensitive: false,
|
||||||
|
@ -34,8 +43,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
preloaderFadeOutInit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (document.readyState !== 'loading') {
|
if (document.readyState !== 'loading') {
|
||||||
|
@ -62,10 +70,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function preloaderFadeOutInit() {
|
|
||||||
document.querySelector('main').classList.remove('stop-scrolling');
|
|
||||||
document.querySelector('.preloader').classList.add('preloader-hidden');
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
<?php if ($using_highlighter): ?>
|
<?php if ($using_highlighter): ?>
|
||||||
<link rel="stylesheet" href="/vendor/scrivo/highlight.php/styles/default.css" />
|
<link rel="stylesheet" href="/vendor/scrivo/highlight.php/styles/default.css" />
|
||||||
|
@ -99,12 +104,12 @@ $selectedloader = "$bg[$i]"; // set variable equal to which random filename was
|
||||||
transition: visibility 0s 1.25s, opacity 1.25s linear;
|
transition: visibility 0s 1.25s, opacity 1.25s linear;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stop-scrolling {
|
#stop-scrolling {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<main class="bd-main stop-scrolling">
|
<main class="bd-main" id="stop-scrolling">
|
||||||
<div class="preloader"></div>
|
<div class="preloader"></div>
|
||||||
<div class="bd-side-background"></div>
|
<div class="bd-side-background"></div>
|
||||||
<div class="bd-main-container container">
|
<div class="bd-main-container container">
|
||||||
|
@ -251,14 +256,12 @@ $selectedloader = "$bg[$i]"; // set variable equal to which random filename was
|
||||||
<?php foreach ($lines as $num => $line):
|
<?php foreach ($lines as $num => $line):
|
||||||
$line = trim($line); ?>
|
$line = trim($line); ?>
|
||||||
<li class="<?= $num == 0 ? 'li1 ln-xtra' : 'li1' ?>" id="<?= $num + 1 ?>">
|
<li class="<?= $num == 0 ? 'li1 ln-xtra' : 'li1' ?>" id="<?= $num + 1 ?>">
|
||||||
<div class="de1"><?= $line === '' ? ' ' : $line ?></div>
|
<div class="de1"><?= $line === '' ? ' ' : linkify($line) ?></div>
|
||||||
</li>
|
</li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="paste" style="line-height:1!important;"><?= $p_content ?></div>
|
|
||||||
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div id="paste" style="line-height:1!important;"><?= $p_content ?></div>
|
<div id="paste" style="line-height:1!important;"><?= $p_content ?></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue