diff --git a/Classes/Constants.h b/Classes/Constants.h index 9125d42..54144d7 100644 --- a/Classes/Constants.h +++ b/Classes/Constants.h @@ -8,7 +8,11 @@ */ -#define kStartPage @"index.html" -#define kStartFolder @"www" +#define kStartPage @"index.html" +//Sencha Demos +//#define kStartFolder @"www/sencha" + +// PhoneGap Docs Only +#define kStartFolder @"www/phonegap-docs/template/phonegap/" diff --git a/phonegap_macAppDelegate.m b/phonegap_macAppDelegate.m index f29d0a4..1a16d78 100644 --- a/phonegap_macAppDelegate.m +++ b/phonegap_macAppDelegate.m @@ -25,6 +25,7 @@ - (void) applicationWillFinishLaunching:(NSNotification *)aNotification [self.contentView.webView setMainFrameURL:[fileUrl description]]; /* useful colors + NSColor *brown = [NSColor colorWithCalibratedRed:0.184 green:0.180 blue:0.176 alpha:1.000]; NSColor *red = [NSColor colorWithCalibratedRed:0.918 green:0.000 blue:0.000 alpha:1.000]; NSColor *orange = [NSColor colorWithCalibratedRed:0.918 green:0.518 blue:0.000 alpha:1.000]; NSColor *yellow = [NSColor colorWithCalibratedRed:0.918 green:0.914 blue:0.000 alpha:1.000]; @@ -33,15 +34,23 @@ - (void) applicationWillFinishLaunching:(NSNotification *)aNotification NSColor *blue = [NSColor colorWithCalibratedRed:0.000 green:0.020 blue:0.918 alpha:1.000]; NSColor *clearColor = [NSColor clearColor]; */ - + + if (kStartFolder == @"www/phonegap-docs/template/phonegap/") { + + NSColor *brown = [NSColor colorWithCalibratedRed:0.184 green:0.180 blue:0.176 alpha:1.000]; + [window setBackgroundColor:brown]; + [self.contentView.webView setBackgroundColor:brown]; //it ignores "WebView" may not respond to 'setBackGroundColor:' @RandyMcMillan + self.window.backgroundColor = [NSColor colorWithCalibratedRed:0.933 green:0.933 blue:0.933 alpha:1.000]; + + }else{ + NSColor *windowBackGroundColor = [NSColor colorWithCalibratedRed:0.918 green:0.918 blue:0.918 alpha:1.000]; NSColor *webViewBackGroundColor = [NSColor colorWithCalibratedRed:0.082 green:0.133 blue:0.192 alpha:1.000]; [window setBackgroundColor:windowBackGroundColor]; [self.contentView.webView setBackgroundColor:webViewBackGroundColor]; //it ignores "WebView" may not respond to 'setBackGroundColor:' @RandyMcMillan self.window.backgroundColor = [NSColor colorWithCalibratedRed:0.933 green:0.933 blue:0.933 alpha:1.000]; - - - + }//end else + } - (void) applicationDidFinishLaunching:(NSNotification *)aNotification { diff --git a/www/phonegap-docs/joDoc.zip b/www/phonegap-docs/joDoc.zip new file mode 100644 index 0000000..9ec2d3c Binary files /dev/null and b/www/phonegap-docs/joDoc.zip differ diff --git a/www/phonegap-docs/template/joDoc/doc.css b/www/phonegap-docs/template/joDoc/doc.css new file mode 100644 index 0000000..dc4cb43 --- /dev/null +++ b/www/phonegap-docs/template/joDoc/doc.css @@ -0,0 +1,325 @@ +/** + doc.css + ======= + + Requires `docbody.css`, which is split with the intention of using + documentation in a jo app without messing with the `body` definition + in the app. + + Support for printed media is included for generating nice PDF files. +*/ +p { + text-align: left; +} + +.crunch p, .crunch ul, .crunch blockquote, +.crunch h3, .crunch h2, .crunch hr, .crunch pre { + display: none; +} + +.crunch h1 { + font-size: 20px; +} + +/* using `` for pretty titles */ +cite { + position: relative; + line-height: .9; + background: #07c7c3; + display: block; + text-align: right; + font-size: 120px; + color: #fff; + font-style: normal; + margin: 0; + padding: 20px 30px 20px 20px; + letter-spacing: -10px; + overflow: hidden; +} + +cite>cite { + letter-spacing: 0; + margin: 0; + padding: 0; + font-size: 25%; + margin-right: -10px; + font-style: italic; + background: transparent; + overflow: visible; +} + +cite a[href] { + background: inherit; + padding: 0; +} + +em { + font-weight: normal; + font-style: italic; +} + +blockquote em { + font-weight: bold; +} + +ul > li { + list-style: disc; +} + +ul { + margin-right: 50px; +} + +img { + display: block; + margin: 2em auto; + max-width: 100%; +} + +blockquote { + font-style: italic; + color: #9e9fa3; + position: relative; + margin: 1.5em 30px; + padding: 10px 10px 0 10px; +} +blockquote:before { + font-style: normal; + content: '\201C'; + font-size: 60px; + position: absolute; + top: -15px; + left: -35px; + color: #e5e6e7; +} +blockquote:after { + font-style: normal; + content: '\201E'; + font-size: 60px; + position: absolute; + bottom: -20px; + right: -35px; + color: #e5e6e7; +} + +blockquote p { + margin: 0 0 10px 0; +} + +blockquote code { + font-style: normal; +} + +h1 { + margin-top: 0; + color: #07c7c3; + font-size: 38px; + font-weight: normal; + margin-bottom: 0; + margin-left: -1px; + letter-spacing: -1px; +} + +h2 { + margin-left: -1px; + margin-top: 1em; + color: #0d0d0d; + font-size: 18px; + font-weight: normal; +} +h2:after, h3:after { + content: ":"; +} + +h3 { + font-size: 16px; + font-weight: normal; +} + +code { + color: #3b5998; + color: #314484; + font: normal 86% "Monaco", "Courier New", "Courier"; +} + +pre { + display: block; + background: #f5f6f7; + margin: 1.5em 20px; + padding: 10px 1.5em; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + white-space: pre-wrap; +} + +pre code { + color: #3b5998; + color: #314484; + font: normal 70% "Monaco", "Courier New", "Courier"; +} + +a[href] { + white-space: nowrap; + text-decoration: none; + color: inherit; + padding: 1px .6em; + background: #f5f6f7; + background: rgba(0, 0, 0, .05); + -webkit-border-radius: .6em; + -moz-border-radius: .6em; + border-radius: .6em; + -webkit-transition: background .2s ease-out, -webkit-box-shadow .1s ease-out, color .15s ease-out; + -moz-transition: background .2s ease-out, -webkit-box-shadow .1s ease-out, color .15s ease-out; + -o-transition: background .2s ease-out, -webkit-box-shadow .1s ease-out, color .15s ease-out; +} + +pre code a[href] { + background: none; + border-bottom:1px dotted; +} + +/* puts an * after external links, jodoc designates with .external */ +a[href].external:after { + content: "*"; + font-style: super; + opacity: .5; +} + +a[href]:hover { + background: rgba(0, 0, 0, .6); + color: #fff; +} + +pre code a[href], code a[href] { + padding: 1px 0; + -webkit-border-radius: 0; + -moz-border-radius: 0; + border-radius: 0; +} + +/* + vanilla markdown doesn't support tables, but since you can + pass HTML through it, may as well put some nice styling for + them in the CSS. +*/ +table { + width: 100%; + margin: 1em auto; + border-top: 1px solid #0d0d0d; + border-left: 1px solid #0d0d0d; + padding: 0; + border-spacing: 0; + text-align: center; +} +th { + background: #36D2CF; + background: #00a9a7; + background: #07c7c3; + padding: 5px; + color: #fff; + text-align: center; + border-right: 1px solid #0d0d0d; + border-bottom: 1px solid #0d0d0d; + font-weight: bold; +} + +th:first { + border-left: 1px solid #0d0d0d; +} + +td { + padding: 5px; + border-right: 1px solid #0d0d0d; + border-bottom: 1px solid #0d0d0d; +} + +td:first { + border-left: 1px solid #0d0d0d; +} + +/*
is used as a page separator in markdown */ +hr { + border: none; + height: 70px; +} +hr:before { + content: "\2026"; + font-size: 50px; + color: #e5e6e7; + text-align: center; + display: block; +} + +#index { + -webkit-column-width: 170px; + -webkit-column-rule-width: 10px; + -moz-column-width: 170px; + -moz-column-rule-width: 10px; + column-width: 170px; + column-rule-width: 10px; + column-width: 170px; + column-rule-width: 10px; +} +#index h2:after, #index h3:after { content:""; } +#index h2 { margin-left: 0; } +#index>h2 { + margin-top: 0; +} +#index { padding: 10px 1px; } +#index ul { + padding: 0; +} +#index ul li { + list-style: none; +} + +/* pretty printing */ +@media print { + body { + max-width: none; + margin: 0; + font-size: 89%; + } + + h1, h2 { + page-break-after: avoid; + } + + h1>p, h2>p{ + page-break-before: avoid; + } + + pre { + page-break-before: auto; + page-break-inside: avoid; + } + + blockquote { + page-break-inside: avoid; + } + + hr { + page-break-before: always; + font-size: inherit; + height: auto; + } + hr:before { + height: auto; + content: ""; + font-size: inherit; + } + + a[href] { + background: none; + padding: 0; + -webkit-border-radius: none; + -moz-border-radius: none; + border-radius: none; + } + + #index { + display: none; + } +} + diff --git a/www/phonegap-docs/template/joDoc/docbody.css b/www/phonegap-docs/template/joDoc/docbody.css new file mode 100644 index 0000000..c7ae692 --- /dev/null +++ b/www/phonegap-docs/template/joDoc/docbody.css @@ -0,0 +1,11 @@ +body { + background: #fff; + font: normal 100% "Georgia", "Palatino", "Times New Roman", "Times"; +/* font: normal 100% "Gill Sans", "Verdana", "Arial"; */ + line-height: 1.6; + padding: 0 1em; + color: #383838; + font-size: 15px; + margin: 0 auto; + max-width: 700px; +} diff --git a/www/phonegap-docs/template/joDoc/index.html b/www/phonegap-docs/template/joDoc/index.html new file mode 100644 index 0000000..8faef2e --- /dev/null +++ b/www/phonegap-docs/template/joDoc/index.html @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/www/phonegap-docs/template/phonegap/arrow.png b/www/phonegap-docs/template/phonegap/arrow.png new file mode 100644 index 0000000..0968c62 Binary files /dev/null and b/www/phonegap-docs/template/phonegap/arrow.png differ diff --git a/www/phonegap-docs/template/phonegap/index.css b/www/phonegap-docs/template/phonegap/index.css new file mode 100644 index 0000000..efa70ef --- /dev/null +++ b/www/phonegap-docs/template/phonegap/index.css @@ -0,0 +1,384 @@ +body { + background-color:#F6F4F2; + font-family:"Helvetica Neue", Helvetica, Arial, sans-serif; + font-size:16px; +} + +h1, ul, li { + margin:0px; + padding:0px; +} + +#header { + background-color:#515151; + background:#515151 -webkit-gradient( + linear, + left top, + left bottom, + color-stop(0.2, #515151), + color-stop(0.8, #302F2D) + ); + background:-moz-linear-gradient(center bottom , #515151 20%, #747474 80%); + border-top:1px solid #919192; + height:32px; + left:0px; + position:fixed; + top:0px; + width:100%; + z-index:1; +} +#subheader { + background-color:#CBCBCB; + background:-webkit-gradient(linear, + left top, + left bottom, + color-stop(0.0, #F9F9F9), + color-stop(1.0, #CBCBCB) + ); + background:-moz-linear-gradient(center bottom , #CBCBCB 0%, #F9F9F9 100%); + border-top:1px solid #383A3C; + border-bottom:1px solid #919395; + height:32px; + left:0px; + position:fixed; + top:32px; + width:100%; + z-index:1; +} +#sidebar { + background-color:#ECEAE7; + bottom:0px; + left:0px; + overflow:auto; + padding:20px 40px 0px 0px; + position:fixed; + text-align:right; + top:66px; + width:180px; + z-index:1; +} +#scrollable { + bottom:0px; + left:220px; + position:fixed; + overflow:auto; + right:0px; + top:64px; +} +#content { +/* top:64px;*/ +/* bottom:0px;*/ +/* right:0px;*/ +/* left:220px;*/ +/* margin:64px auto 0px 220px;*/ + margin:20px 60px; +/* position:absolute;*/ +/* overflow:auto;*/ + z-index:0; +} + +#header h1, +#header h1 a, +#subheader h1 { + color:#F6F4F2; + font-size:18px; + font-weight:normal; + line-height:32px; + margin:0px; + text-align:center; + text-shadow:0px -1px 1px #222222; +} + +#header h1 a strong { + font-weight:bold; +} + +#header h1 { + text-align:left; + margin-left:20px; +} + +#subheader h1 { + color:#000000; + text-shadow:#FFFFFF 0px 1px 0px; +} + +#subheader small { + color:#EFEFEF; + font-size:14px; + line-height:32px; + position:absolute; + top:0px; + right:20px; + text-shadow:-1px 1px 1px #666666; +} + +#sidebar .vertical_divider { + background-color:#CCCCCC; + bottom:0px; + border-right:1px solid #FFFFFF; + position:absolute; + top:0px; + right:0px; + width:1px; +} + +#sidebar h1 { + color:#000000; + font-size:18px; + padding:0px; + margin:30px 0px; + font-weight:normal; + text-shadow:#FFFFFF 0px 1px 0px; +} + +#sidebar ul, +#sidebar li { + margin:0px; + padding:0px; +} +#sidebar li, +#sidebar li a { + color:#767573; + font-size:14px; + list-style:none; + margin:15px 0px; + text-shadow:#FFFFFF 0px 1px 1px; +} +#sidebar li a { + -webkit-transition:color .15s ease-out; + -moz-transition:color .15s ease-out; + -o-transition:color .15s ease-out; +} +#sidebar li a:hover { + color:#242220; + -webkit-transition:color .15s ease-in; + -moz-transition:color .15s ease-in; + -o-transition:color .15s ease-in; +} + + +#otherbar { + display:none; +} + +#content { + font-size:13px; + line-height:160%; + max-width:750px; +} + +#content h1 { + border-bottom:2px solid; + font-size:2em; + font-weight:normal; + margin:2.0em 0px 1.3em 0px; + padding-bottom:0.6em; +} +#content h2 { + color:#242220; + font-size:1.4em; + font-weight:bold; + margin:1.3em 0px 0.8em 0px; + text-shadow:#FFFFFF 0px 1px 1px; +} +#content h3 { + font-size:1em; + font-weight:bold; + margin:0.8em 0px 0.5em 0px; + text-shadow:#FFFFFF 0px 1px 1px; +} + +hr { + display:none; + border:none; + margin:40px 0px; + border-top:1px solid #CCCCCC; + border-bottom:1px solid #FFFFFF; +} + +p,blockquote,pre,ul { + margin:1em 0px; +} + +h2:after, +h3:after { + content: ":"; +} + +blockquote { + color:#767573; + font-style:normal; + margin-left:35px; + padding-left:20px; + position:relative; + text-shadow:#FFFFFF 0px 1px 0px; +} +blockquote code { + font-style: normal; +} +blockquote p { + padding:10px 0px; +} +blockquote::before { + font-style: normal; + content: '\201C'; + font-size: 450%; + font-family:Georgia, Palatino, 'Times New Roman', Times;; + position: absolute; + left: -25px; + top:0.3em; + color: #E0E0E0; +} + +ul { + margin-left:40px; +} +ul > li { + list-style:disc; + list-style-position:outside; +} +ul ul { + margin-bottom:0.5em; + margin-top:0.5em; +} + + + +code { + font-family:"DejaVu", "Monaco", "Courier New", "Courier"; + font-size:90%; + padding:2px 4px; + white-space:pre-wrap;; +} + +pre { +/* border:1px solid #CCCCCC;*/ + background:#F2F0EE; + -webkit-border-radius:11px; + -moz-border-radius:11px; + border-radius:11px; + display:block; + line-height:110%; + margin:1.5em 0px 3em 0px; + padding:15px 20px; + white-space:pre-wrap; +} +pre code { + background:none; + border:none; + font-size:11px; + padding:0px; +} + +a[href] { +/* color:inherit;*/ + color:#F06433; + text-decoration:none; + text-shadow:#FFF 0px 1px 0px; +} +a[href]:hover { + color:#d0410f; +} + +.prettyprint a[href], +.prettyprint a[href] span { + text-decoration:underline; + text-shadow:none; +} +.prettyprint a[href] :hover, +.prettyprint a[href] span :hover { + text-decoration:none; +} + +code a[href] { + color:inherit; +/* border-bottom:1px dotted #000000;*/ + text-decoration:underline; +} +code a[href]:hover { + color:inherit; + text-decoration:none; +} + +a[href].external:after { + content: "*"; + font-style: super; + opacity: .5; +} + +#index { + -webkit-column-width: 235px; + -webkit-column-rule-width: 5px; + -moz-column-width: 235px; + -moz-column-rule-width: 5px; + column-width: 235px; + column-rule-width: 5px; +} + +#index h2:after, +#index h3:after { + content:""; +} + +#index h2 { + margin:0px; + padding:0px; +} + +#index { + padding: 10px 1px; +} + +#index ul { + margin:0px 0px 30px 0px; + padding:0; +} + +#index ul li { + list-style: none; +} + +#index ul li a { + +} + +#home h1 { + border-bottom:1px solid #919395; + padding-bottom:20px; + margin:30px 0px; +} + +#home h2 { + font-weight:normal; + margin:0px 0px 10px 0px; + padding:0px; +} + +#home h2:after { + content:''; +} + +#home h2 a { + text-shadow:#FFFFFF 0px 1px 1px; +} + +#home span { + color:#8B8078; + font-size:14px; + text-shadow:#FFFFFF 0px 1px 0px; +} + +#home ul { + float:left; + margin:0px; + padding:0px; +} +#home ul li { + float:left; + height:120px; + list-style:none; + margin:0px; + padding:0px 20px; + width:200px; +} \ No newline at end of file diff --git a/www/phonegap-docs/template/phonegap/index.html b/www/phonegap-docs/template/phonegap/index.html new file mode 100644 index 0000000..03aaa3b --- /dev/null +++ b/www/phonegap-docs/template/phonegap/index.html @@ -0,0 +1,145 @@ + + + + + + + + PhoneGap API Documentation + + + + + + + + + + + +
+

Geolocation

+ +
+ + + +
+
+
+

API Reference

+
    +
  • +

    Accelerometer

    + Tap into the device's motion sensor. +
  • +
  • +

    Camera

    + Capture a photo using the device's camera. +
  • +
  • +

    Capture

    + Capture media files using device's media capture applications. +
  • +
  • +

    Compass

    + Obtain the direction that the device is pointing. +
  • +
  • +

    Connection

    + Quickly check the network state, and cellular network information. +
  • +
  • +

    Contacts

    + Work with the devices contact database. +
  • +
  • +

    Device

    + Gather device specific information. +
  • +
  • +

    Events

    + Hook into native events through JavaScript. +
  • +
  • +

    File

    + Hook into native file system through JavaScript. +
  • +
  • +

    Geolocation

    + Make your application location aware. +
  • +
  • +

    Media

    + Record and play back audio files. +
  • +
  • +

    Network

    + Quickly check the network state. +
  • +
  • +

    Notification

    + Visual, audible, and tactile device notifications. +
  • +
  • +

    Storage

    + Hook into the devices native storage options. +
  • +
+

Guides

+
    +
  • +

    Keyword Index

    + Full index of the PhoneGap Documentation. +
  • +
+
+
+
+ + + + + + \ No newline at end of file diff --git a/www/phonegap-docs/template/phonegap/line.png b/www/phonegap-docs/template/phonegap/line.png new file mode 100644 index 0000000..7ee528f Binary files /dev/null and b/www/phonegap-docs/template/phonegap/line.png differ diff --git a/www/phonegap-docs/template/phonegap/mobile.css b/www/phonegap-docs/template/phonegap/mobile.css new file mode 100644 index 0000000..541cb1b --- /dev/null +++ b/www/phonegap-docs/template/phonegap/mobile.css @@ -0,0 +1,120 @@ +body { + margin:0px; + padding:0px; +} + +#header { + position:static; +} + +#header h1 { + margin:0px; + text-align:center; +} + +#subheader { + position:static; + text-align:center; +} + +#subheader h1 { + display:none; +} + +#subheader small { + position:static; +} + +#sidebar { + display:none; +} + +#scrollable { + position:static; +} + +#content { + margin:0px; + max-width:none; + padding:10px; + position:static; +} + +#home, +#index { + margin:0px 10px; +} + +#home h1, +#index h2 { + border:none; + color:#CCCCCC; + font-size:20px; + font-weight:bold; + margin:10px 0px; + padding:0px; + text-shadow:#FFFFFF 0px 1px 0px; +} + +#home h2 a, +#index ul li a { + text-shadow:#FFFFFF 0px 1px 1px; +} + +#home ul, +#index ul { + background-color:#F9F9F9; + border:1px solid #CCCED0; + -moz-border-radius:6px; + -webkit-border-radius:6px; + border-radius:6px; + display:block; + margin:0px 0px 20px 0px; + padding:0px; + float:none; +} + +#home ul li, +#index ul li { + border-bottom:1px solid #CCCED0; + display:block; + float:none; + height:100%; + margin:0px; + padding:0px; + width:100%; +} + +#home ul li:last-child, +#index ul li:last-child { + border-bottom:none; +} + +#home li h2 { + margin:0px; + padding:0px; +} + +#home li h2 a, +#index li a { + background:url(arrow.png) no-repeat 100% 50%; + color:#66686A; + display:block; + font-size:16px; + font-weight:normal; + margin:0px; + padding:10px 20px; +} + +#home li span { + display:none; +} + +#index { + -webkit-column-width: auto; + -webkit-column-rule-width: auto; + -moz-column-width: auto; + -moz-column-rule-width: auto; + column-width: auto; + column-rule-width: auto; +} \ No newline at end of file diff --git a/www/phonegap-docs/template/phonegap/prettify/lang-apollo.js b/www/phonegap-docs/template/phonegap/prettify/lang-apollo.js new file mode 100755 index 0000000..bfc0014 --- /dev/null +++ b/www/phonegap-docs/template/phonegap/prettify/lang-apollo.js @@ -0,0 +1,2 @@ +PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\r\n]*/,null,"#"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/, +null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[SE]?BANK\=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[!-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),["apollo","agc","aea"]) \ No newline at end of file diff --git a/www/phonegap-docs/template/phonegap/prettify/lang-css.js b/www/phonegap-docs/template/phonegap/prettify/lang-css.js new file mode 100755 index 0000000..61157f3 --- /dev/null +++ b/www/phonegap-docs/template/phonegap/prettify/lang-css.js @@ -0,0 +1,2 @@ +PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[ \t\r\n\f]+/,null," \t\r\n\u000c"]],[["str",/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],["str",/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],["kwd",/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//], +["com",/^(?: