HTML
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Title</title>
</head>
<body>
</body>
</html>
CSS
selector {
}
selector {
}
selector {
}
selector {
}
SCSS
$font-stack: Helvetica, sans-serif;
$primary-color: #333;
body {
font: 100% $font-stack;
color: $primary-color;
}
Less
@base: #f938ab;
.box-shadow(@style, @c) when (iscolor(@c)) {
-webkit-box-shadow: @style @c;
box-shadow: @style @c;
}
.box-shadow(@style, @alpha: 50%) when (isnumber(@alpha)) {
.box-shadow(@style, rgba(0, 0, 0, @alpha));
}
.box {
color: saturate(@base, 5%);
border-color: lighten(@base, 30%);
div { .box-shadow(0 0 5px, 30%) }
}
JavaScript
var App = function() {
var uiInit = function() {
};
return {
init: function() {
uiInit();
}
};
}();
App.init();
PHP
<?php
class App {
function home()
{
}
function profile()
{
}
function settings()
{
}
}
Ruby
say = "I love Ruby"
puts say
say['love'] = "*love*"
puts say.upcase
5.times { puts say }
Python
name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
JSON
{
"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
]
}
}
}