1. Syntax Highlighting file for Euphoria on RosettaCode

Anyone want to have a go cooking up the GeSHi file for Euphoria?

Kind regards, Bruce

new topic     » topic index » view message » categorize

2. Re: Syntax Highlighting file for Euphoria on RosettaCode

There's supposed to be a basic layout available, but I haven't been able to access it as yet.

new topic     » goto parent     » topic index » view message » categorize

3. Re: Syntax Highlighting file for Euphoria on RosettaCode

There's an AutoGeSHi tool on RosttaCode.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Syntax Highlighting file for Euphoria on RosettaCode

Insolor said...

There's an AutoGeSHi tool on RosttaCode.

Result text:

<?php 
/************************************************************************************* 
 * euphoria.php 
 * -------- 
 * Author: Insolor () 
 * Copyright: (c) 2011 Insolor  
 * Release Version: v.v.v.v 
 * Date Started: 2011/02/18 
 * 
 * Euphoria language file for GeSHi. 
 * 
 * CHANGES 
 * ------- 
 * yyyy/mm/dd (v.v.v.v) 
 *  -  First Release 
 * 
 * TODO (updated yyyy/mm/dd) 
 * ------------------------- 
 * 
 * 
 ************************************************************************************* 
 * 
 *     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' => 'Euphoria', 
    'COMMENT_SINGLE' => array(1 => '--'), 
    'COMMENT_MULTI' => array('/*' => '*/'), 
    'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 
    'QUOTEMARKS' => array('"', '\''), 
    'ESCAPE_CHAR' => '\\', 
    'KEYWORDS' => array(1 => array('and', 'as', 'break', 'by', 'case', 'constant', 'continue', 'do', 'else', 'elsedef', 'elsif', 'elsifdef', 'end', 'entry', 'enum', 'exit', 'export', 'fallthru', 'for', 'function', 'global', 'goto', 'if', 'ifdef', 'include', 'label', 'loop', 'namespace', 'not', 'or', 'override', 'procedure', 'public', 'retry', 'return', 'routine', 'switch', 'then', 'to', 'type', 'until', 'while', 'with', 'without', 'xor'), 2 => array('?', 'abort', 'and_bits', 'append', 'arctan', 'atom', 'c_func', 'c_proc', 'call', 'call_func', 'call_proc', 'clear_screen', 'close', 'command_line', 'compare', 'cos', 'date', 'delete', 'delete_routine', 'equal', 'find', 'floor', 'get_key', 'getc', 'getenv', 'gets', 'hash', 'head', 'include_paths', 'insert', 'integer', 'length', 'log', 'machine_func', 'machine_proc', 'match', 'mem_copy', 'mem_set', 'not_bits', 'object', 'open', 'option_switches', 'or_bits', 'peek', 'peek2s', 'peek2u', 'peek4s', 'peek4u', 'peek_string', 'peeks', 'pixel', 'platform', 'poke', 'poke2', 'poke4', 'position', 'power', 'prepend', 'print', 'printf', 'puts', 'rand', 'remainder', 'remove', 'repeat', 'replace', 'routine_id', 'sequence', 'sin', 'splice', 'sprintf', 'sqrt', 'system', 'system_exec', 'tail', 'tan', 'task_clock_start', 'task_clock_stop', 'task_create', 'task_list', 'task_schedule', 'task_self', 'task_status', 'task_suspend', 'task_yield', 'time', 'trace', 'xor_bits') 
        ), 
    'SYMBOLS' => array( 
        1 => array( 
            '(', ')', '{', '}', '[', ']', '+', '-', '*', '/', '%', '=', '<', '>', '!', '^', '&', '|', ':', ';', ',' 
            ) 
        ), 
    'CASE_SENSITIVE' => array( 
        GESHI_COMMENTS => false, 
        1 => true, 2 => true 
        ), 
    'STYLES' => array( 
        'KEYWORDS' => array(1 => 'color: #b1b100;', 2 => 'color: #b1b100;' 
            ), 
        'COMMENTS' => array( 
            1 => 'color: #666666; font-style: italic;', 
            '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( 
            0 => 'color: #004000;' 
            ), 
        'SYMBOLS' => array( 
            1 => 'color: #339933;' 
            ), 
        'REGEXPS' => array(), 
        'SCRIPT' => array() 
        ), 
    'URLS' => array(1 => '', 2 => ''), 
    'OOLANG' => true, 
    'OBJECT_SPLITTERS' => array(1 => '.', 2 => ':'), 
    'REGEXPS' => array(), 
    'STRICT_MODE_APPLIES' => GESHI_NEVER, 
    'SCRIPT_DELIMITERS' => array(), 
    'HIGHLIGHT_STRICT_BLOCK' => array() 
); 
 
?> 

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu