jablonka.czprosek.czf

websvn

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

 

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|new|null|return|switch|this|true|typeof|var|void|while|with";
16var GLOBAL = "toString|valueOf|toSource|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 parser.add(SGML_COMMENT, "color:green;font-style:italic");
32 
33 // processing instruction
34 parser.add(/<\?[\w-]+[^>]+>/, "color:#DA70D6;font-style:italic");
35 
36 // atributes
37 parser.add(/([\w:]+=)("[^"\n]*")/, "font-weight:bold;font-weight:550", "<span>$2</span><span style='color:blue'>$3</span>");
38 
39 // strings
40 parser.add(STRING1, "color:maroon");
41 parser.add(STRING2, "color:maroon");
42 
43 // tags
44 parser.add(/(<\/?)([\w:]+)/, "color:#800080;font-weight:bold", "$2<span>$3</span>");
45 parser.add(/(\/)>/, "font-weight:bold", "<span>$2</span>>");
46 
47 // regular expressions
48 parser.add(/([^\w\$\/'"*)])(\/[^\/\n\r\*][^\/\n\r]*\/g?i?)/, "color:maroon", "$2<span>$3</span>");
49 
50 // numbers
51 parser.add(NUMBER, "color:maroon");
52 
53 // urls/email
54 urls = true;
55 email = true;
56 
57 tabStop = 4;
58 
59 // I use this a lot so I want it to stand out
60 parser.add(/\$element\b/, "color:teal");
61 
62 // ignore words that start with "$"
63 parser.add(/\$\w+/, IGNORE);
64 
65 // javascript keywords
66 parser.add(KEYWORDS, "color:blue");
67 parser.add(GLOBAL, "color:teal");
68 parser.add(ALERT, "color:red");
69};
70 
71//]]>
72</script>
73</public:component>
74 

Powered by WebSVN 2.2.1