ext教程和可视化开发工具, 包含EXT2.2程序源码

源代码在线查看: javascript.js

软件大小: 5707 K
上传用户: dxhh
关键词: ext EXT 2.2 教程
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*
				 * CodePress regular expressions for JavaScript syntax highlighting
				 */
				 
				// JavaScript
				Language.syntax = [ 
					{ input : /\"(.*?)(\"||)/g, output : '"$1$2' }, // strings double quote
					{ input : /\'(.*?)(\'||)/g, output : '\'$1$2' }, // strings single quote
					{ input : /\b(break|continue|do|for|new|this|void|case|default|else|function|return|typeof|while|if|label|switch|var|with|catch|boolean|int|try|false|throws|null|true|goto)\b/g, output : '$1' }, // reserved words
					{ input : /\b(alert|isNaN|parent|Array|parseFloat|parseInt|blur|clearTimeout|prompt|prototype|close|confirm|length|Date|location|Math|document|element|name|self|elements|setTimeout|navigator|status|String|escape|Number|submit|eval|Object|event|onblur|focus|onerror|onfocus|onclick|top|onload|toString|onunload|unescape|open|valueOf|window|onmouseover)\b/g, output : '$1' }, // special words
					{ input : /([^:]|^)\/\/(.*?)(					{ input : /\/\*(.*?)\*\//g, output : '/*$1*/' } // comments /* */
				]
				
				Language.snippets = [
					{ input : 'dw', output : 'document.write(\'$0\');' },
					{ input : 'getid', output : 'document.getElementById(\'$0\')' },
					{ input : 'fun', output : 'function $0(){\n\t\n}' },
					{ input : 'func', output : 'function $0(){\n\t\n}' }
				]
				
				Language.complete = [
					{ input : '\'',output : '\'$0\'' },
					{ input : '"', output : '"$0"' },
					{ input : '(', output : '\($0\)' },
					{ input : '[', output : '\[$0\]' },
					{ input : '{', output : '{\n\t$0\n}' }		
				]
				
				Language.shortcuts = []
							

相关资源