jablonka.czprosek.czf

websvn

Subversion Repositories:
[/] [templates/] [calm/] [star-light/] [star-php.htc] - Blame information for rev 1

 

Line No. Rev Author Line
11simandl<?xml version="1.0" encoding="ISO-8859-1"?>
2<!--
3 star-light - version 1.0.2 (2005/06/06)
4 Copyright 2005, Dean Edwards
5 License: http://creativecommons.org/licenses/LGPL/2.1/
6-->
7<public:component xmlns:public="urn:HTMLComponent" lightweight="true">
8<public:attach event="ondocumentready" handler="init"/>
9<script type="text/javascript">
10//<![CDATA[
11 
12var KEYWORDS = "as|break|case|continue|declare|default|do|echo|else|" +
13 "elseif|endif|endfor|endswitch|endwhile|exit|for|foreach|function|global|" +
14 "if|include|include_once|next|return|require|require_once|switch|while";
15 
16function init() {
17 // default text colour
18 style.color = "black";
19 
20 // escape character
21 parser.escapeChar = "\\";
22 
23 // comments
24 parser.add(LINE_COMMENT, "color:green");
25 parser.add(BLOCK_COMMENT, "color:green");
26 
27 // regular expressions
28 parser.add(/([^\w\$\/'"*)])(\/[^\/\n\r\*][^\/\n\r]*\/g?i?)/, "color:maroon", "$2<span>$3</span>");
29 
30 // strings
31 parser.add(STRING1, "color:maroon");
32 parser.add(STRING2, "color:maroon");
33 
34 // numbers
35 parser.add(NUMBER, "color:maroon");
36 
37 // urls/email
38 urls = true;
39 email = true;
40 
41 tabStop = 4;
42 
43 // ignore words that start with "$"
44 parser.add(/\$\w+/, IGNORE);
45 
46 // php keywords
47 parser.add(/<\?php|\?>/, "color:red;font-weight:bold");
48 parser.add(KEYWORDS, "color:blue");
49 parser.add(/\w+/, "color:teal");
50};
51 
52//]]>
53</script>
54</public:component>

Powered by WebSVN 2.2.1