Commit 1626f882 authored by root's avatar root Committed by lechuck
Browse files

Import wp-syntax 0.9.9

parent ae60d3b1
=== WP-Syntax ===
Contributors: rmm5t, shazahm1@hotmail.com
Donate link: http://ryan.mcgeary.org/wp-syntax/
Contributors: shazahm1@hotmail.com, rmm5t
Donate link: http://connections-pro.com
Tags: syntax highlighting, syntax, highlight, code, formatting
Requires at least: 2.0
Tested up to: 2.8
Stable tag: 0.9.8
Requires at least: 3.0
Tested up to: 3.1
Stable tag: 0.9.9
WP-Syntax provides clean syntax highlighting for embedding source code within pages or posts.
......@@ -165,7 +165,11 @@ or somewhere else like this:
This allows for a great possibility of different customizations. Be sure to
review the [GeSHi Documentation](http://qbnz.com/highlighter/geshi-doc.html).
== Release Notes ==
== Changelog ==
**0.9.9** : Fix to support child theme's. WP-Syntax now requires WP >= 3.0.
Credit to [OddOneOut](http://wordpress.org/support/topic/wp-syntax-css-with-twenty-ten-child-theme)
Updated to use 1.0.8.9.
**0.9.8** : Fix for optional line attributes; Tested on WP 2.8
......@@ -226,3 +230,8 @@ conflicts with other plugins;
([#531](http://dev.wp-plugins.org/ticket/531))
**0.1** : First internal release; Uses GeSHi v1.0.7.16;
== Upgrade Notice ==
= 0.9.9 =
Compatible with WP >= 3.0 and latest GeSHi
\ No newline at end of file
<?php
/*************************************************************************************
* 4cs.php
* ------
* Author: Jason Curl (jason.curl@continental-corporation.com)
* Copyright: (c) 2009 Jason Curl
* Release Version: 1.0.8.9
* Date Started: 2009/09/05
*
* 4CS language file for GeSHi.
*
* CHANGES
* -------
* 2009/09/05
* - First Release
*
* TODO (updated 2009/09/01)
* -------------------------
*
*************************************************************************************
*
* 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' => 'GADV 4CS',
'COMMENT_SINGLE' => array(1 => "//"),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'All', 'AllMatches', 'And', 'And_Filters', 'As', 'Asc', 'BasedOn',
'BestMatch', 'Block', 'Buffer', 'ByRef', 'ByVal', 'Call', 'Channel',
'Chr', 'Clear', 'Close', 'Confirm', 'Const', 'Continue', 'Cos',
'Critical', 'Declare', 'Default', 'DefaultChannel', 'DefaultDelayTime',
'DefaultReceiveMode', 'DefaultResponseTime', '#Define', 'DelayTime',
'Delete', 'Div', 'Else', '#Else', 'ElseIf', '#ElseIf', 'End', 'EndCritical',
'EndInlineC', 'EndFunction', 'EndIf', '#EndIf', 'EndInputList',
'EndLocalChannel', 'EndScenario', 'EndSub', 'EndWhile', 'Error',
'ErrorLevelOff', 'ErrorLevelOn', 'ErrorLevelSet', 'ErrorLevelSetRaw',
'Event', 'EventMode', 'EventOff', 'EventOn', 'EventSet', 'EventSetRaw',
'Execute', 'Exit', 'Exp', 'FileClose', 'FilterClear', 'FileEOF', 'FileOpen',
'FileRead', 'FileSize', 'FileWrite', 'FilterAdd', 'FilterMode',
'FilterOff', 'FilterOn', 'For', 'Format', 'Function', 'GoOnline', 'GoTo',
'Handle', 'Hide', 'If', '#If', '#IfDef', '#IfNDef', 'Ignore', '#Include',
'InlineC', 'Input', 'InputItem', 'InputList', 'Kill', 'LBound', 'LocalChannel',
'Local', 'Log', 'Log10', 'LogOff', 'LogOn', 'Loop', 'Message', 'Mod',
'MonitorChannel', 'MostFormat', 'MostMessage', 'Named', 'Never', 'Next',
'NoOrder', 'Not', 'Nothing', 'NoWait', 'Numeric', 'OnError', 'OnEvent',
'Or', 'Or_Filters', 'Order', 'Pass', 'Pow', 'Prototype', 'Quit', 'Raise',
'Random', 'Receive', 'ReceiveMode', 'ReceiveRaw', 'Redim', 'Remote', 'Repeat',
'Repeated', 'ResponseTime', 'Resume', 'ResumeCritical', 'RT_Common',
'RT_Dll_Call', 'RT_FILEIO', 'RT_General', 'RT_HardwareAccess',
'RT_MessageVariableAccess', 'RT_Scenario', 'RT_VariableAccess', 'Runtime',
'Scenario', 'ScenarioEnd', 'ScenarioStart', 'ScenarioStatus', 'ScenarioTerminate',
'Send', 'SendRaw', 'Set', 'SetError', 'Sin', 'Single', 'Show', 'Start',
'StartCritical', 'Starts', 'Static', 'Step', 'Stop', 'String', 'Sub',
'System_Error', 'TerminateAllChilds', 'Terminates', 'Then', 'Throw', 'TimeOut',
'To', 'TooLate', 'Trunc', 'UBound', 'Unexpected', 'Until', 'User_Error',
'View', 'Wait', 'Warning', 'While', 'XOr'
),
2 => array(
'alias', 'winapi', 'long', 'char', 'double', 'float', 'int', 'short', 'lib'
)
),
'SYMBOLS' => array(
'=', ':=', '<', '>', '<>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000C0; font-weight: bold;',
2 => 'color: #808080;'
),
'COMMENTS' => array(
1 => 'color: #008000;'
),
'BRACKETS' => array(
0 => 'color: #000080;'
),
'STRINGS' => array(
0 => 'color: #800080;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #66cc66;'
),
'SYMBOLS' => array(
0 => 'color: #000080;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
1 => '',
2 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>
\ No newline at end of file
<?php
/*************************************************************************************
* 6502acme.php
* -------
* Author: Warren Willmey
* Copyright: (c) 2010 Warren Willmey.
* Release Version: 1.0.8.9
* Date Started: 2010/05/26
*
* MOS 6502 (more specifically 6510) ACME Cross Assembler 0.93 by Marco Baye language file for GeSHi.
*
* CHANGES
* -------
* 2010/07/22
* - First Release
*
* TODO (updated 2010/07/22)
* -------------------------
*
*************************************************************************************
*
* 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' => 'MOS 6502 (6510) ACME Cross Assembler format',
'COMMENT_SINGLE' => array(1 => ';'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
/* 6502/6510 Opcodes. */
1 => array(
'adc', 'and', 'asl', 'bcc', 'bcs', 'beq', 'bit', 'bmi',
'bne', 'bpl', 'brk', 'bvc', 'bvs', 'clc', 'cld', 'cli',
'clv', 'cmp', 'cpx', 'cpy', 'dec', 'dex', 'dey', 'eor',
'inc', 'inx', 'iny', 'jmp', 'jsr', 'lda', 'ldx', 'ldy',
'lsr', 'nop', 'ora', 'pha', 'php', 'pla', 'plp', 'rol',
'ror', 'rti', 'rts', 'sbc', 'sec', 'sed', 'sei', 'sta',
'stx', 'sty', 'tax', 'tay', 'tsx', 'txa', 'txs', 'tya',
),
/* Index Registers, yes the 6502 has other registers by they are only
* accessable by specific opcodes. The 65816 also has access to the stack pointer S. */
2 => array(
'x', 'y', 's'
),
/* Directives or "pseudo opcodes" as defined by ACME 0.93 file AllPOs.txt. */
3 => array(
'!8', '!08', '!by', '!byte',
'!16', '!wo', '!word',
'!24', '!32',
'!fi', '!fill',
'!align',
'!ct', '!convtab',
'!tx', '!text',
'!pet',
'!raw',
'!scrxor',
'!to',
'!source',
'!bin', '!binary',
'!zn', '!zone',
'!sl',
'!svl',
'!sal',
'!if', '!ifdef',
'!for',
'!set',
'!do', 'while', 'until',
'!eof', '!endoffile',
'!warn', '!error', '!serious',
'!macro',
// , '*=' // Not a valid keyword (uses both * and = signs) moved to symbols instead.
'!initmem',
'!pseudopc',
'!cpu',
'!al', '!as', '!rl', '!rs',
),
/* 6502/6510 undocumented opcodes (often referred to as illegal instructions).
* These are present in the 6502/6510 but NOT in the newer CMOS revisions of the 65C02 or 65816.
* As they are undocumented instructions there are no "official" names for them, there are also
* several more that mainly perform various forms of crash and are not supported by ACME 0.93.
*/
4 => array(
'anc', 'arr', 'asr', 'dcp', 'dop', 'isc', 'jam', 'lax',
'rla', 'rra', 'sax', 'sbx', 'slo', 'sre', 'top',
),
/* 65c02 instructions, MOS added a few (much needed) instructions in the CMOS version of the 6502, but stupidly removed the undocumented/illegal opcodes.
* ACME 0.93 does not support the rmb0-7 and smb0-7 instructions (they are currently rem'ed out). */
5 => array(
'bra', 'phx', 'phy', 'plx', 'ply', 'stz', 'trb', 'tsb'
),
/* 65816 instructions. */
6 => array(
'brl', 'cop', 'jml', 'jsl', 'mvn', 'mvp', 'pea', 'pei',
'per', 'phb', 'phd', 'phk', 'plb', 'pld', 'rep', 'rtl',
'sep', 'tcd', 'tcs', 'tdc', 'tsc', 'txy', 'tyx', 'wdm',
'xba', 'xce',
),
/* Deprecated directives or "pseudo opcodes" as defined by ACME 0.93 file AllPOs.txt. */
7 => array(
'!cbm',
'!sz', '!subzone',
'!realpc',
),
/* Math functions, some are aliases for the symbols. */
8 => array(
'not', 'div', 'mod', 'xor', 'or', 'sin', 'cos', 'tan',
'arcsin', 'arccos', 'arctan', 'int', 'float',
),
),
'SYMBOLS' => array(
// '[', ']', '(', ')', '{', '}', // These are already defined by GeSHi as BRACKETS.
'*=', '#', '!', '^', '-', '*', '/',
'%', '+', '-', '<<', '>>', '>>>',
'<', '>', '^', '<=', '<', '>=', '>', '!=',
'=', '&', '|', '<>',
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
6 => false,
7 => false,
8 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00f; font-weight:bold;',
2 => 'color: #00f; font-weight:bold;',
3 => 'color: #080; font-weight:bold;',
4 => 'color: #f00; font-weight:bold;',
5 => 'color: #80f; font-weight:bold;',
6 => 'color: #f08; font-weight:bold;',
7 => 'color: #a04; font-weight:bold; font-style: italic;',
8 => 'color: #000;',
),
'COMMENTS' => array(
1 => 'color: #999; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #009; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000;'
),
'STRINGS' => array(
0 => 'color: #080;'
),
'NUMBERS' => array(
GESHI_NUMBER_INT_BASIC => 'color: #f00;',
GESHI_NUMBER_HEX_PREFIX_DOLLAR => 'color: #f00;',
GESHI_NUMBER_HEX_PREFIX => 'color: #f00;',
GESHI_NUMBER_BIN_PREFIX_PERCENT => 'color: #f00;',
GESHI_NUMBER_FLT_NONSCI => 'color: #f00;',
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #080;'
),
'REGEXPS' => array(
0 => 'color: #f00;'
, 1 => 'color: #933;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => '',
7 => '',
8 => '',
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC |
GESHI_NUMBER_FLT_NONSCI |
GESHI_NUMBER_HEX_PREFIX_DOLLAR |
GESHI_NUMBER_HEX_PREFIX |
GESHI_NUMBER_BIN_PREFIX_PERCENT,
// AMCE Octal format not support and gets picked up as Decimal unfortunately.
'REGEXPS' => array(
//ACME .# Binary number format. e.g. %..##..##..##
0 => '\%[\.\#]{1,64}',
//ACME Local Labels
1 => '\.[_a-zA-Z][_a-zA-Z0-9]*',
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 8,
'PARSER_CONTROL' => array(
'NUMBERS' => array(
'PRECHECK_RX' => '/[\da-fA-F\.\$\%]/'
)
)
);
?>
\ No newline at end of file
<?php
/*************************************************************************************
* 6502kickass.php
* -------
* Author: Warren Willmey
* Copyright: (c) 2010 Warren Willmey.
* Release Version: 1.0.8.9
* Date Started: 2010/06/07
*
* MOS 6502 (6510) Kick Assembler 3.13 language file for GeSHi.
*
* CHANGES
* -------
* 2010/07/22
* - First Release
*
* TODO (updated 2010/07/22)
* -------------------------
*
*************************************************************************************
*
* 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' => 'MOS 6502 (6510) Kick Assembler format',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
/* 6502/6510 Opcodes including undocumented opcodes as Kick Assembler 3.13 does not make a distinction - they are ALL valid. */
1 => array(
'adc', 'ahx', 'alr', 'anc', 'anc2', 'and', 'arr', 'asl',
'axs', 'bcc', 'bcs', 'beq', 'bit', 'bmi', 'bne', 'bpl',
'brk', 'bvc', 'bvs', 'clc', 'cld', 'cli', 'clv', 'cmp',
'cpx', 'cpy', 'dcp', 'dec', 'dex', 'dey', 'eor', 'inc',
'inx', 'iny', 'isc', 'jmp', 'jsr', 'las', 'lax', 'lda',
'ldx', 'ldy', 'lsr', 'nop', 'ora', 'pha', 'php', 'pla',
'plp', 'rla', 'rol', 'ror', 'rra', 'rti', 'rts', 'sax',
'sbc', 'sbc2', 'sec', 'sed', 'sei', 'shx', 'shy', 'slo',
'sre', 'sta', 'stx', 'sty', 'tas', 'tax', 'tay', 'tsx',
'txa', 'txs', 'tya', 'xaa',
),
/* DTV additional Opcodes. */
2 => array(
'bra', 'sac', 'sir'
),
/* Index Registers, yes the 6502 has other registers by they are only
* accessable by specific opcodes. */
3 => array(
'x', 'y'
),
/* Directives. */
4 => array(
'.pc', '.pseudopc', 'virtual', '.align', '.byte', '.word', '.text', '.fill',
'.import source', '.import binary', '.import c64', '.import text', '.import', '.print', '.printnow',
'.error', '.var', '.eval', '.const', '.eval const', '.enum', '.label', '.define', '.struct',
'if', '.for', '.macro', '.function', '.return', '.pseudocommand', '.namespace', '.filenamespace',
'.assert', '.asserterror',
),
/* Kick Assembler 3.13 Functions/Operators. */
5 => array(
'size', 'charAt', 'substring', 'asNumber', 'asBoolean', 'toIntString', 'toBinaryString', 'toOctalString',
'toHexString', 'lock', // String functions/operators.
'get', 'set', 'add', 'remove', 'shuffle', // List functions.
'put', 'keys', // Hashtable functions.
'getType', 'getValue', 'CmdArgument', // Pseudo Commands functions.
'asmCommandSize', // Opcode Constants functions.
'LoadBinary', 'getSize',
'LoadSid', 'getData',
'LoadPicture', 'width', 'height', 'getPixel', 'getSinglecolorByte', 'getMulticolorByte',
'createFile', 'writeln',
'cmdLineVars',
'getX', 'getY', 'getZ', // Vector functions.
'RotationMatrix', 'ScaleMatrix', 'MoveMatrix', 'PerspectiveMatrix', // Matrix functions.
),
/* Kick Assembler 3.13 Math Functions. */
6 => array(
'abs', 'acos', 'asin', 'atan', 'atan2', 'cbrt', 'ceil', 'cos', 'cosh',
'exp', 'expm1', 'floor', 'hypot', 'IEEEremainder', 'log', 'log10',
'log1p', 'max', 'min', 'pow', 'mod', 'random', 'round', 'signum',
'sin', 'sinh', 'sqrt', 'tan', 'tanh', 'toDegrees', 'toRadians',
),
/* Kick Assembler 3.13 Objects/Data Types. */
7 => array(
'List', // List() Object.
'Hashtable', // Hashtable() Object.
'Vector', // Vector() Object.
'Matrix', // Matrix() Object.
),
/* Kick Assembler 3.13 Constants. */
8 => array(
'PI', 'E', // Math Constants.
'AT_ABSOLUTE' , 'AT_ABSOLUTEX' , 'AT_ABSOLUTEY' , 'AT_IMMEDIATE', // Pseudo Commands Constants.
'AT_INDIRECT' , 'AT_IZEROPAGEX' , 'AT_IZEROPAGEY' , 'AT_NONE',
'BLACK', 'WHITE', 'RED', 'CYAN', 'PURPLE', 'GREEN', 'BLUE', // Colour Constants.
'YELLOW', 'ORANGE', 'BROWN', 'LIGHT_RED', 'DARK_GRAY', 'GRAY',
'LIGHT_GREEN', 'LIGHT_BLUE', 'LIGHT_GRAY',
'C64FILE', // Template Tag names.
'BF_C64FILE', 'BF_BITMAP_SINGLECOLOR', 'BF_KOALA' , 'BF_FLI', // Binary format constant
),
),
'SYMBOLS' => array(
// '[', ']', '(', ')', '{', '}', // These are already defined by GeSHi as BRACKETS.
'-', '+', '-', '*', '/', '>', '<', '<<', '>>', '&', '|', '^', '=', '==',
'!=', '>=', '<=', '!', '&&', '||', '#',
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => true,
5 => true,
6 => true,
7 => true,
8 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00f; font-weight:bold;',
2 => 'color: #00f; font-weight:bold;',
3 => 'color: #00f; font-weight:bold;',
4 => 'color: #080; font-weight:bold;',
5 => 'color: #80f; font-weight:bold;',
6 => 'color: #f08; font-weight:bold;',
7 => 'color: #a04; font-weight:bold; font-style: italic;',
8 => 'color: #f08; font-weight:bold;',
),
'COMMENTS' => array(
1 => 'color: #999; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #009; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000;'
),
'STRINGS' => array(
0 => 'color: #080;'
),
'NUMBERS' => array(
GESHI_NUMBER_INT_BASIC => 'color: #f00;',
GESHI_NUMBER_HEX_PREFIX_DOLLAR => 'color: #f00;',
GESHI_NUMBER_BIN_PREFIX_PERCENT => 'color: #f00;',
GESHI_NUMBER_FLT_NONSCI => 'color: #f00;',
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #080;'
),
'REGEXPS' => array(
0 => 'color: #933;',
1 => 'color: #933;',
2 => 'color: #933;',
3 => 'color: #00f; font-weight:bold;',
),
'SCRIPT' => array(