Test Page for Missing Language Handlers for Google Code Prettify
lang-config.js
# comment
foo bar
lang-css.js
@charset('UTF-8');
/** A url that is not quoted. */
@import(url(/more-styles.css));
HTML { content-before: 'hello\20'; content-after: 'w\6f rld';
-moz-spiff: inherit !important }
/* Test units on numbers. */
BODY { margin-bottom: 4px; margin-left: 3in; margin-bottom: 0; margin-top: 5% }
/** Test number literals and quoted values. */
TABLE.foo TR.bar A#visited { color: #001123; font-family: "monospace" }
/** bolder is not a name, so should be plain. !IMPORTANT is a keyword
* regardless of case.
*/
blink { text-decoration: BLINK !IMPORTANT; font-weight: bolder }
/* Test rgba() and hsla() */
.rgba {
color: rgba(51, 102, 153, 0.4);
}
.hsla {
background-color: hsla(210, 50%, 40%, 0.4);
}
/* Test @font-face */
@font-face {
font-family: "Foo Bar";
font-style: normal;
font-weight: bold;
src: url("/font/foo-bar.woff"), local("Foo Bar");
}
/* Test #rgb compat id*/
#abcghi {
color: #abc;
}
lang-scss.js
/*!
* Sassy CSS
*/
// Variable
$blue: #3bbfce;
$margin: 16px;
// Mix-in
@mixin table-base {
th {
text-align: center;
font-weight: bold;
}
td, th {padding: 2px}
}
@mixin left($dist) {
float: left;
margin-left: $dist;
}
#data {
@include left(10px);
@include table-base;
}
// Extending
.error {
border: 1px #f00;
background: #fdd;
}
.error.intrusion {
font-size: 1.3em;
font-weight: bold;
}
.badError {
@extend .error;
border-width: 3px;
}
/*!
* Sass indented syntax
*/
// Variable
$blue: #3bbfce
$margin: 16px
// Mix-in
@mixin table-base
th
text-align: center
font-weight: bold
td, th
padding: 2px
@mixin left($dist)
float: left
margin-left: $dist
#data
@include left(10px)
@include table-base
// Extending
.error
border: 1px #f00
background: #fdd
.error.intrusion
font-size: 1.3em
font-weight: bold
.badError
@extend .error
border-width: 3px
lang-vim.js
" Restore previous session with cofirmation
function! s:RestoreSessionWithConfirm()
let msg = 'Do you want to restore previous session?'
if !argc() && confirm(msg, "&Yes\n&No", 1, 'Question') == 1
execute 'SessionRestore'
endif
endfunction