PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 0ms

/bundles/plugins-trunk/XML/docs/javascript.html

#
HTML | 41 lines | 30 code | 11 blank | 0 comment | 0 complexity | 50cff55a79051d3475aabebdf0e24535 MD5 | raw file
 1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd"> 
 2
 3<html xmlns="http://www.w3.org/1999/xhtml">
 4
 5<head>
 6<title>JavaScriptSideKick Plugin</title>
 7
 8<meta name="author" content="Martin Raspe"></meta>
 9<meta name="date" content="8.3.2006, 20:00 h"></meta>
10<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"></meta>
11
12</head>
13
14<body>
15
16<div class="main">
17<h2>JavaScriptSideKick plugin</h2>
18<p>
19(c) 2005 by Martin Raspe
20</p>
21
22<p>Provides a SideKick structure tree for JavaScript source. It is based and depends on the SideKick plugin. 
23</p>
24
25<p>
26The plugin parses JavaScript source code linewise, using regular expressions. Because of the difficulties in JavaScript parsing, only a very rudimentary representation of the file is shown, providing basic source navigation. The plugin tries to catch idioms containing the "function" keyword. To be caught, the idiom must appear first on the line (leading whitespace is ignored). The plugin scans the code for the following cases:
27</p>
28<ul>
29<li>a simple function declaration: <i>function</i> <b>foobar</b>() ...</li>  
30<li>a function assigned to a variable: <b>foo</b> = <i>function</i>() ...</li>
31<li>a function assigned to a "var": var <b>foo</b> = <i>function</i>() ...</li>
32<li>a function assigned to a method name: <b>foo.bar</b> = <i>function</i>() ...</li>
33<li>a function denoting a Class (name beginning with an uppercase character): <b>Foo</b> = <i>function</i>() ...</li>
34<li>a method assigned to the prototype of a Class: <b>Foo.prototype.bar</b> = <i>function</i>() ...</li>
35</ul> 
36
37</div>
38
39</body>
40</html>
41