• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

syntax_highlight/php/HFile/HFile_awk.php

Go to the documentation of this file.
00001 <?php
00002 $BEAUT_PATH = realpath(".")."/syntax_highlight/php";
00003 if (!isset ($BEAUT_PATH)) return;
00004 require_once("$BEAUT_PATH/Beautifier/HFile.php");
00005   class HFile_awk extends HFile{
00006    function HFile_awk(){
00007      $this->HFile();    
00008 /*************************************/
00009 // Beautifier Highlighting Configuration File 
00010 // AWK Script
00011 /*************************************/
00012 // Flags
00013 
00014 $this->nocase                   = "0";
00015 $this->notrim                   = "0";
00016 $this->perl                     = "0";
00017 
00018 // Colours
00019 
00020 $this->colours          = array("blue", "purple", "brown");
00021 $this->quotecolour              = "blue";
00022 $this->blockcommentcolour       = "green";
00023 $this->linecommentcolour        = "green";
00024 
00025 // Indent Strings
00026 
00027 $this->indent                   = array("{");
00028 $this->unindent                 = array("}");
00029 
00030 // String characters and delimiters
00031 
00032 $this->stringchars              = array("\"", "'");
00033 $this->delimiters               = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", "      ", ".", "?");
00034 $this->escchar                  = "";
00035 
00036 // Comment settings
00037 
00038 $this->linecommenton            = array("#");
00039 $this->blockcommenton           = array("");
00040 $this->blockcommentoff          = array("");
00041 
00042 // Keywords (keyword mapping to colour number)
00043 
00044 $this->keywords                 = array(
00045                         "atan2" => "1", 
00046                         "break" => "1", 
00047                         "BEGIN" => "1", 
00048                         "close" => "1", 
00049                         "continue" => "1", 
00050                         "cos" => "1", 
00051                         "delete" => "1", 
00052                         "do" => "1", 
00053                         "else" => "1", 
00054                         "exp" => "1", 
00055                         "exit" => "1", 
00056                         "END" => "1", 
00057                         "for" => "1", 
00058                         "function" => "1", 
00059                         "getline" => "1", 
00060                         "gsub" => "1", 
00061                         "if" => "1", 
00062                         "index" => "1", 
00063                         "int" => "1", 
00064                         "length" => "1", 
00065                         "local" => "1", 
00066                         "log" => "1", 
00067                         "match" => "1", 
00068                         "next" => "1", 
00069                         "print" => "1", 
00070                         "printf" => "1", 
00071                         "rand" => "1", 
00072                         "return" => "1", 
00073                         "sin" => "1", 
00074                         "split" => "1", 
00075                         "sprintf" => "1", 
00076                         "sqrt" => "1", 
00077                         "srand" => "1", 
00078                         "sub" => "1", 
00079                         "substr" => "1", 
00080                         "system" => "1", 
00081                         "tolower" => "1", 
00082                         "toupper" => "1", 
00083                         "while" => "1", 
00084                         "ARGC" => "2", 
00085                         "ARGV" => "2", 
00086                         "CONVFMT" => "2", 
00087                         "ENVIRON" => "2", 
00088                         "FILENAME" => "2", 
00089                         "FNR" => "2", 
00090                         "FS" => "2", 
00091                         "NF" => "2", 
00092                         "NR" => "2", 
00093                         "OFMT" => "2", 
00094                         "OFS" => "2", 
00095                         "ORS" => "2", 
00096                         "RLENGTH" => "2", 
00097                         "RS" => "2", 
00098                         "RSTART" => "2", 
00099                         "SUBSEP" => "2", 
00100                         "+" => "4", 
00101                         "-" => "4", 
00102                         "=" => "4", 
00103                         "//" => "4", 
00104                         "/" => "4", 
00105                         "%" => "4", 
00106                         "&" => "4", 
00107                         ">" => "4", 
00108                         "<" => "4", 
00109                         "^" => "4", 
00110                         "!" => "4", 
00111                         "|" => "4", 
00112                         "$" => "4", 
00113                         "*" => "4");
00114 
00115 // Special extensions
00116 
00117 // Each category can specify a PHP function that returns an altered
00118 // version of the keyword.
00119         
00120         
00121 
00122 $this->linkscripts      = array(
00123                         "1" => "donothing", 
00124                         "2" => "donothing", 
00125                         "4" => "donothing");
00126 }
00127 
00128 
00129 function donothing($keywordin)
00130 {
00131         return $keywordin;
00132 }
00133 
00134 }?>

Generated on Fri Dec 13 2013 09:06:39 for ILIAS Release_3_4_x_branch .rev 46804 by  doxygen 1.7.1