Rosetta Code:Village Pump/Syntax highlighting: Difference between revisions

m
→‎ALGOL 68, AutoGeSHi, then wait?: translate HTML entities escapes
m (→‎ALGOL 68, AutoGeSHi, then wait?: translate HTML entities escapes)
Line 720:
=ALGOL 68, AutoGeSHi, then wait?=
I ran http://rosettacode.org/geshi/ and it generated a script, who do I send this script to?
 
<lang php><?php
/*************************************************************************************
Line 760 ⟶ 759:
*
************************************************************************************/
 
$language_data = array(
'LANG_NAME' => 'ALGOL 68',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array('#' => '#', 'CO' => 'CO', 'COMMENT' => 'COMMENT', '&#162;¢' => '&#162;¢', '&#163;£' => '&#163;£', 'PR' => 'PR', 'PRAGMAT' => 'PRAGMAT', 'QUOTE' => 'QUOTE'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
Line 774 ⟶ 773:
5 => array('FLEX', 'HEAP', 'LOC', 'LONG', 'REF', 'SHORT', 'EITHER'),
6 => array('CHANNEL', 'FILE', 'FORMAT', 'STRUCT', 'UNION'),
7 => array('OF', 'AT', '@', 'IS', ':=:', 'ISNT', ':/=:', ':&amp;#8800;:', 'CTB', 'CT', '::', 'CTAB', '::=', 'TRUE', 'FALSE', 'EMPTY', 'NIL', '&amp;#9675;', 'SKIP', '~'),
8 => array('NOT', 'UP', 'DOWN', 'LWB', 'UPB', '-', 'ABS', 'ARG', 'BIN', 'ENTIER', 'LENG', 'LEVEL', 'ODD', 'REPR', 'ROUND', 'SHORTEN', 'CONJ', 'SIGN'),
9 => array('&amp;#172;¬', '&amp;#8593;', '&amp;#8595;', '&amp;#8970;', '&amp;#8968;', '~', '&amp;#9129;', '&amp;#9127;'),
10 => array('+*', 'I', '+&amp;#215;×', '&amp;#8869;', '!', '&amp;#9192;'),
11 => array('SHL', 'SHR', '**', 'UP', 'DOWN', 'LWB', 'UPB', '&amp;#8593;', '&amp;#8595;', '&amp;#8970;', '&amp;#8968;', '&amp;#9129;', '&amp;#9127')
12 => array('*', '/', '%', 'OVER', '%*', 'MOD', 'ELEM', '&amp;#215;×', '&amp;#247;÷', '&amp;#247;&amp;#215;÷×', '&amp;#247;÷*', '%&amp;#215;×', '&amp;#9633;', '&amp;#247;÷:'),
13 => array('-', '+'),
14 => array('&lt;<', 'LT', '&lt;<=', 'LE', '&gt;>=', 'GE', '&gt;>', 'GT', '&amp;#8804;', '&amp;#8805;'),
15 => array('=', 'EQ', '/=', 'NE', '&amp;#8800;', '~='),
16 => array('&amp;', 'AND', '&amp;#8743;', 'OR', '&amp;#8744;'),
17 => array('MINUSAB', 'PLUSAB', 'TIMESAB', 'DIVAB', 'OVERAB', 'MODAB', 'PLUSTO'),
18 => array('-:=', '+:=', '*:=', '/:=', '%:=', '%*:=', '+=:', '&amp;#215;×:=', '&amp;#247;÷:=', '&amp;#247;&amp;#215;÷×:=', '&amp;#247;÷*:=', '%&amp;#215;×:=', '&amp;#247;÷::=', 'MINUS', 'PLUS', 'DIV', 'MOD', 'PRUS'),
19 => array('THEF', 'ANDF', 'ORF', 'ANDTH', 'OREL', 'ANDTHEN', 'ORELSE'),
20 => array('int_lengths', 'intlengths', 'int_shorths', 'intshorths', 'max_int', 'maxint', 'real_lengths', 'reallengths', 'real_shorths', 'realshorths', 'bits_lengths', 'bitslengths', 'bits_shorths', 'bitsshorths', 'bytes_lengths', 'byteslengths', 'bytes_shorths', 'bytesshorths', 'max_abs_char', 'maxabschar', 'int_width', 'intwidth', 'long_int_width', 'longintwidth', 'long_long_int_width', 'longlongintwidth', 'real_width', 'realwidth', 'long_real_width', 'longrealwidth', 'long_long_real_width', 'longlongrealwidth', 'exp_width', 'expwidth', 'long_exp_width', 'longexpwidth', 'long_long_exp_width', 'longlongexpwidth', 'bits_width', 'bitswidth', 'long_bits_width', 'longbitswidth', 'long_long_bits_width', 'longlongbitswidth', 'bytes_width', 'byteswidth', 'long_bytes_width', 'longbyteswidth', 'max_real', 'maxreal', 'small_real', 'smallreal', 'long_max_int', 'longmaxint', 'long_long_max_int', 'longlongmaxint', 'long_max_real', 'longmaxreal', 'long_small_real', 'longsmallreal', 'long_long_max_real', 'longlongmaxreal', 'long_long_small_real', 'longlongsmallreal', 'long_max_bits', 'longmaxbits', 'long_long_max_bits', 'longlongmaxbits', 'null_character', 'nullcharacter', 'blank', 'flip', 'flop', 'error_char', 'errorchar', 'exp_char', 'expchar', 'newline_char', 'newlinechar', 'formfeed_char', 'formfeedchar', 'tab_char', 'tabchar'),
Line 880 ⟶ 879:
 
:The HTML escapes in that language file will probably cause some trouble with GeSHi. Could someone send me an Unicode version of that file without those HTML escapes? --[[User:BenBE|BenBE]] 10:58, 24 April 2010 (UTC)
 
OK... I used mediawiki to do the conversion. :-) ... Will email U a copy too.
 
[[User:NevilleDNZ|NevilleDNZ]] 13:01, 24 April 2010 (UTC)