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

syntax_highlight/php/HFile/HFile_realtext.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_realtext extends HFile{
00006    function HFile_realtext(){
00007      $this->HFile();    
00008 /*************************************/
00009 // Beautifier Highlighting Configuration File 
00010 // RealText
00011 /*************************************/
00012 // Flags
00013 
00014 $this->nocase                   = "1";
00015 $this->notrim                   = "0";
00016 $this->perl                     = "0";
00017 
00018 // Colours
00019 
00020 $this->colours          = array("blue", "purple");
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                         "<a" => "1", 
00046                         "</a>" => "1", 
00047                         "<a>" => "1", 
00048                         "<b>" => "1", 
00049                         "</b>" => "1", 
00050                         "<br/>" => "1", 
00051                         "<center>" => "1", 
00052                         "</center>" => "1", 
00053                         "<clear/>" => "1", 
00054                         "<font>" => "1", 
00055                         "<font" => "1", 
00056                         "</font>" => "1", 
00057                         "<hr/>" => "1", 
00058                         "<i>" => "1", 
00059                         "</i>" => "1", 
00060                         "<li>" => "1", 
00061                         "</li>" => "1", 
00062                         "<ol>" => "1", 
00063                         "</ol>" => "1", 
00064                         "<p>" => "1", 
00065                         "</p>" => "1", 
00066                         "<pos/>" => "1", 
00067                         "<pre>" => "1", 
00068                         "</pre>" => "1", 
00069                         "<required>" => "1", 
00070                         "</required>" => "1", 
00071                         "<time" => "1", 
00072                         "<tl>" => "1", 
00073                         "</tl>" => "1", 
00074                         "<tu>" => "1", 
00075                         "</tu>" => "1", 
00076                         "<u>" => "1", 
00077                         "</u>" => "1", 
00078                         "<ul>" => "1", 
00079                         "</ul>" => "1", 
00080                         "<window>" => "1", 
00081                         "<window" => "1", 
00082                         "</window>" => "1", 
00083                         "//" => "1", 
00084                         "/>" => "1", 
00085                         "attribute=" => "2", 
00086                         "begin=" => "2", 
00087                         "bgcolor=" => "2", 
00088                         "color=" => "2", 
00089                         "crawlrate=" => "2", 
00090                         "duration=" => "2", 
00091                         "end=" => "2", 
00092                         "height=" => "2", 
00093                         "href=" => "2", 
00094                         "scrollrate=" => "2", 
00095                         "size=" => "2", 
00096                         "target=" => "2", 
00097                         "type=" => "2", 
00098                         "width=" => "2", 
00099                         "wordwrap=" => "2", 
00100                         "x=" => "2", 
00101                         "y=" => "2", 
00102                         "=" => "2");
00103 
00104 // Special extensions
00105 
00106 // Each category can specify a PHP function that returns an altered
00107 // version of the keyword.
00108         
00109         
00110 
00111 $this->linkscripts      = array(
00112                         "1" => "donothing", 
00113                         "2" => "donothing");
00114 }
00115 
00116 
00117 function donothing($keywordin)
00118 {
00119         return $keywordin;
00120 }
00121 
00122 }?>

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