jablonka.czprosek.czf

websvn

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

 

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 
12// my own ultraedit settings :-)
13 
14var KEYWORDS = "arguments|break|case|continue|default|delete|do|else|false|" +
15 "for|function|if|in|instanceof|new|null|return|switch|this|true|typeof|var|void|while|with";
16var GLOBAL = "toString|valueOf|window|element|prototype|constructor|document|" +
17 "escape|unescape|parseInt|parseFloat|setTimeout|clearTimeout|setInterval|clearInterval|" +
18 "NaN|isNaN|Infinity";
19var ALERT = "alert|eval|__defineGetter__|__defineSetter__|try|catch|finally|throw";
20 
21function init() {
22 // default text colour
23 style.color = "black";
24 
25 // escape character
26 parser.escapeChar = "\\";
27 
28 // comments
29 parser.add(LINE_COMMENT, "color:green");
30 parser.add(BLOCK_COMMENT, "color:green");
31 
32 // regular expressions
33 parser.add(/([^\w\$\/'"*)])(\/[^\/\n\r\*][^\/\n\r]*\/g?i?)/, "color:maroon", "$2<span>$3</span>");
34 
35 // strings
36 parser.add(STRING1, "color:maroon");
37 parser.add(STRING2, "color:maroon");
38 
39 // numbers
40 parser.add(NUMBER, "color:maroon");
41 
42 // urls/email
43 urls = true;
44 email = true;
45 
46 tabStop = 4;
47 
48 // I use this a lot so I want it to stand out
49 parser.add(/\$element\b/, "color:teal");
50 
51 // ignore words that start with "$"
52 parser.add(/\$\w+/, IGNORE);
53 
54 // javascript keywords
55 parser.add(ALERT, "color:red");
56 parser.add(KEYWORDS, "color:blue");
57 parser.add(/&&|\|\|/, "color:blue");
58 parser.add(GLOBAL, "color:teal");
59};
60 
61//]]>
62</script>
63</public:component>
64 

Powered by WebSVN 2.2.1