fichiers de test + correctifs
correctifs de styles (polices)
This commit is contained in:
@ -13,7 +13,7 @@ texte: #667;
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
background: #ddc;
|
background: #ddc;
|
||||||
font-family: 'Droid Serif', serif;
|
font-family: 'Droid Serif', 'Georgia', serif;
|
||||||
padding: 2% 2% 5% 2%;
|
padding: 2% 2% 5% 2%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -34,7 +34,10 @@ header, #main .header, #main h2, #main h3, #main h4, #main h5, #main h6 {
|
|||||||
|
|
||||||
#main {
|
#main {
|
||||||
/*margin: 2% 0;*/
|
/*margin: 2% 0;*/
|
||||||
font-family: 'Lucida grande', serif;
|
font-family: 'Lucida grande', 'Georgia', serif;
|
||||||
|
}
|
||||||
|
.ui.menu {
|
||||||
|
font-family: 'Droid Serif', 'Georgia', serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*#main article.card header.extra.content { background: #eee; }*/
|
/*#main article.card header.extra.content { background: #eee; }*/
|
||||||
@ -126,7 +129,7 @@ pre {
|
|||||||
background-color: #282c34;
|
background-color: #282c34;
|
||||||
color: #abb2bf;
|
color: #abb2bf;
|
||||||
padding: 0 0.3em;
|
padding: 0 0.3em;
|
||||||
font-size: 0.9em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* comments */
|
/* comments */
|
||||||
|
3
static/semantic-ui/semantic.min.css
vendored
3
static/semantic-ui/semantic.min.css
vendored
File diff suppressed because one or more lines are too long
189
tests/atom-one-dark-ui.css
Normal file
189
tests/atom-one-dark-ui.css
Normal file
@ -0,0 +1,189 @@
|
|||||||
|
syntax {
|
||||||
|
background-color: #282c34;
|
||||||
|
color: #abb2bf;
|
||||||
|
}
|
||||||
|
.cyan {
|
||||||
|
color: #56b6c2;
|
||||||
|
}
|
||||||
|
.blue {
|
||||||
|
color: #61afef;
|
||||||
|
}
|
||||||
|
.purple {
|
||||||
|
color: #c678dd;
|
||||||
|
}
|
||||||
|
.green {
|
||||||
|
color: #98c379;
|
||||||
|
}
|
||||||
|
.red1 {
|
||||||
|
color: #e06c75;
|
||||||
|
}
|
||||||
|
.red2 {
|
||||||
|
color: #be5046;
|
||||||
|
}
|
||||||
|
.orange1 {
|
||||||
|
color: #d19a66;
|
||||||
|
}
|
||||||
|
.orange2 {
|
||||||
|
color: #e5c07b;
|
||||||
|
}
|
||||||
|
atom-text-editor[mini] {
|
||||||
|
line-height: 25px;
|
||||||
|
max-height: 27px;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
atom-text-editor[mini] {
|
||||||
|
font-size: 1.15em;
|
||||||
|
line-height: 2em;
|
||||||
|
max-height: none;
|
||||||
|
padding-left: 0.5em;
|
||||||
|
border-radius: 3px;
|
||||||
|
color: #d5d9e2;
|
||||||
|
border: 1px solid #171c26;
|
||||||
|
background-color: #1b212c;
|
||||||
|
}
|
||||||
|
atom-text-editor[mini] .placeholder-text,
|
||||||
|
atom-text-editor[mini]::shadow .placeholder-text {
|
||||||
|
color: rgba(153, 163, 184, 0.6);
|
||||||
|
}
|
||||||
|
atom-text-editor[mini] .selection .region,
|
||||||
|
atom-text-editor[mini]::shadow .selection .region {
|
||||||
|
background-color: #2b3446;
|
||||||
|
}
|
||||||
|
atom-text-editor[mini] .cursor,
|
||||||
|
atom-text-editor[mini]::shadow .cursor {
|
||||||
|
border-color: #528bff;
|
||||||
|
border-width: 2px;
|
||||||
|
}
|
||||||
|
atom-text-editor[mini].is-focused,
|
||||||
|
atom-text-editor[mini].is-focused::shadow {
|
||||||
|
outline: none;
|
||||||
|
border-color: #528bff;
|
||||||
|
box-shadow: 0 0 0 1px #528bff;
|
||||||
|
background-color: #1b212c;
|
||||||
|
}
|
||||||
|
atom-text-editor[mini].is-focused .selection .region,
|
||||||
|
atom-text-editor[mini].is-focused::shadow .selection .region {
|
||||||
|
background-color: #364259;
|
||||||
|
}
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3 {
|
||||||
|
line-height: 1em;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
font-size: 2em;
|
||||||
|
}
|
||||||
|
h2 {
|
||||||
|
font-size: 1.5em;
|
||||||
|
}
|
||||||
|
h3 {
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
line-height: 1.6;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
label {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
pre {
|
||||||
|
box-shadow: none;
|
||||||
|
color: #99a3b8;
|
||||||
|
background: #2f384c;
|
||||||
|
border-radius: 3px;
|
||||||
|
border: none;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
code {
|
||||||
|
font-weight: normal;
|
||||||
|
color: #d5d9e2;
|
||||||
|
background: #2f384c;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
.selected {
|
||||||
|
font-weight: normal;
|
||||||
|
color: #d5d9e2;
|
||||||
|
}
|
||||||
|
.text-smaller {
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
.text-subtle {
|
||||||
|
font-weight: normal;
|
||||||
|
color: rgba(153, 163, 184, 0.6);
|
||||||
|
}
|
||||||
|
.text-highlight {
|
||||||
|
font-weight: normal;
|
||||||
|
color: #d5d9e2;
|
||||||
|
}
|
||||||
|
.text-error {
|
||||||
|
color: #ff6347;
|
||||||
|
}
|
||||||
|
.text-info {
|
||||||
|
color: #6494ed;
|
||||||
|
}
|
||||||
|
.text-info:hover {
|
||||||
|
color: #6494ed;
|
||||||
|
}
|
||||||
|
.text-warning {
|
||||||
|
color: #e2c08d;
|
||||||
|
}
|
||||||
|
.text-warning:hover {
|
||||||
|
color: #e2c08d;
|
||||||
|
}
|
||||||
|
.text-success {
|
||||||
|
color: #73c990;
|
||||||
|
}
|
||||||
|
.text-success:hover {
|
||||||
|
color: #73c990;
|
||||||
|
}
|
||||||
|
.highlight-mixin {
|
||||||
|
padding: 1px 4px;
|
||||||
|
font-weight: bold;
|
||||||
|
text-shadow: none;
|
||||||
|
border-radius: 3px;
|
||||||
|
color: #d5d9e2;
|
||||||
|
}
|
||||||
|
.highlight {
|
||||||
|
padding: 1px 4px;
|
||||||
|
font-weight: bold;
|
||||||
|
text-shadow: none;
|
||||||
|
border-radius: 3px;
|
||||||
|
color: #d5d9e2;
|
||||||
|
background-color: #2f384c;
|
||||||
|
}
|
||||||
|
.highlight-info {
|
||||||
|
padding: 1px 4px;
|
||||||
|
font-weight: bold;
|
||||||
|
text-shadow: none;
|
||||||
|
border-radius: 3px;
|
||||||
|
color: #bfd3f8;
|
||||||
|
background-color: rgba(0, 136, 255, 0.5);
|
||||||
|
}
|
||||||
|
.highlight-warning {
|
||||||
|
padding: 1px 4px;
|
||||||
|
font-weight: bold;
|
||||||
|
text-shadow: none;
|
||||||
|
border-radius: 3px;
|
||||||
|
color: #f7edde;
|
||||||
|
background-color: rgba(204, 133, 51, 0.5);
|
||||||
|
}
|
||||||
|
.highlight-error {
|
||||||
|
padding: 1px 4px;
|
||||||
|
font-weight: bold;
|
||||||
|
text-shadow: none;
|
||||||
|
border-radius: 3px;
|
||||||
|
color: #ffbaad;
|
||||||
|
background-color: rgba(217, 38, 38, 0.5);
|
||||||
|
}
|
||||||
|
.highlight-success {
|
||||||
|
padding: 1px 4px;
|
||||||
|
font-weight: bold;
|
||||||
|
text-shadow: none;
|
||||||
|
border-radius: 3px;
|
||||||
|
color: #bde5ca;
|
||||||
|
background-color: rgba(32, 182, 132, 0.5);
|
||||||
|
}
|
||||||
|
.results-view .path-details.list-item {
|
||||||
|
color: #9fa9bc;
|
||||||
|
}
|
34
tests/css.css
Normal file
34
tests/css.css
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
@media screen and (-webkit-min-device-pixel-ratio: 0) {
|
||||||
|
body:first-of-type pre::after {
|
||||||
|
content: 'highlight: ' attr(class);
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
background: linear-gradient(45deg, blue, red);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@import url('print.css');
|
||||||
|
@page:right {
|
||||||
|
margin: 1cm 2cm 1.3cm 4cm;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: Chunkfive; src: url('Chunkfive.otf');
|
||||||
|
}
|
||||||
|
|
||||||
|
div.text,
|
||||||
|
#content,
|
||||||
|
li[lang=ru] {
|
||||||
|
font: Tahoma, Chunkfive, sans-serif;
|
||||||
|
background: url('hatch.png') /* wtf? */;
|
||||||
|
color: #F0F0F0 !important;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Tests */
|
||||||
|
|
||||||
|
.support-test {
|
||||||
|
background: blue; /* <- valid properties/values should be highlighted more */
|
||||||
|
invalid-property: invalid-color; /* <- invalid should be toned down */
|
||||||
|
}
|
17
tests/html.html
Normal file
17
tests/html.html
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html class="no-js" lang="">
|
||||||
|
<head>
|
||||||
|
<title>Title</title>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<link rel="stylesheet" href="css/main.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<h1>HTML sample</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="js/main.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
16
tests/javascript.js
Normal file
16
tests/javascript.js
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
function $initHighlight(block, flags) {
|
||||||
|
try {
|
||||||
|
if (block.className.search(/\bno\-highlight\b/) != -1)
|
||||||
|
return processBlock(block.function, true, 0x0F) + ' class=""';
|
||||||
|
} catch (e) {
|
||||||
|
/* handle exception */
|
||||||
|
var e4x =
|
||||||
|
<div>Example
|
||||||
|
<p>1234</p></div>;
|
||||||
|
}
|
||||||
|
for (var i = 0 / 2; i < classes.length; i++) { // "0 / 2" should not be parsed as regexp
|
||||||
|
if (checkCondition(classes[i]) === undefined)
|
||||||
|
return /\d+[\s/]/g;
|
||||||
|
}
|
||||||
|
console.log(Array.every(classes, Boolean));
|
||||||
|
}
|
29
tests/markdown.md
Normal file
29
tests/markdown.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# hello world
|
||||||
|
## hello world
|
||||||
|
### hello world
|
||||||
|
#### hello world
|
||||||
|
##### hello world
|
||||||
|
###### hello world
|
||||||
|
|
||||||
|
you can write text [with links](http://example.com) inline or [link references][1].
|
||||||
|
|
||||||
|
* one _thing_ has *em* phasis
|
||||||
|
* two __things__ are **bold**
|
||||||
|
|
||||||
|
[1]: http://example.com
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
hello world
|
||||||
|
===========
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="main"></div>
|
||||||
|
```
|
||||||
|
|
||||||
|
> markdown is so cool
|
||||||
|
|
||||||
|
so are code segments
|
||||||
|
|
||||||
|
1. one thing (yeah!)
|
||||||
|
2. two thing `i can write code`, and `more` wipee!
|
44
tests/php.php
Normal file
44
tests/php.php
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
<?php
|
||||||
|
function parseHttpAcceptLanguage($str=NULL) {
|
||||||
|
// getting http instruction if not provided
|
||||||
|
$str=$str?$str:$_SERVER['HTTP_ACCEPT_LANGUAGE'];
|
||||||
|
// exploding accepted languages
|
||||||
|
$langs=explode(',',$str);
|
||||||
|
// creating output list
|
||||||
|
$accepted=array();
|
||||||
|
foreach ($langs as $lang) {
|
||||||
|
// parsing language preference instructions
|
||||||
|
// 2_digit_code[-longer_code][;q=coefficient]
|
||||||
|
ereg('([a-z]{1,2})(-([a-z0-9]+))?(;q=([0-9\.]+))?',$lang,$found);
|
||||||
|
// 2 digit lang code
|
||||||
|
$code=$found[1];
|
||||||
|
// lang code complement
|
||||||
|
$morecode=$found[3];
|
||||||
|
// full lang code
|
||||||
|
$fullcode=$morecode?$code.'-'.$morecode:$code;
|
||||||
|
// coefficient
|
||||||
|
$coef=sprintf('%3.1f',$found[5]?$found[5]:'1');
|
||||||
|
// for sorting by coefficient
|
||||||
|
$key=$coef.'-'.$code;
|
||||||
|
// adding
|
||||||
|
$accepted[$key]=array('code'=>$code,'coef'=>$coef,'morecode'=>$morecode,'fullcode'=>$fullcode);
|
||||||
|
}
|
||||||
|
// sorting the list by coefficient desc
|
||||||
|
krsort($accepted);
|
||||||
|
return $accepted;
|
||||||
|
}
|
||||||
|
|
||||||
|
class SomeClass {
|
||||||
|
|
||||||
|
public function __init() {
|
||||||
|
# do something
|
||||||
|
throw new Exception('pipo');
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function pipo($var) {
|
||||||
|
return $var + 12;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
SomeClass::pipo(12);
|
||||||
|
?>
|
26
tests/python.py
Normal file
26
tests/python.py
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
@requires_authorization
|
||||||
|
def somefunc(param1='', param2=0):
|
||||||
|
r'''A docstring'''
|
||||||
|
if param1 > param2: # interesting
|
||||||
|
print 'Gre\'ater'
|
||||||
|
return (param2 - param1 + 1) or None
|
||||||
|
|
||||||
|
class SomeClass:
|
||||||
|
def cats(arg):
|
||||||
|
abc = 1
|
||||||
|
deg = [1, 2, '3']
|
||||||
|
|
||||||
|
def another(arg):
|
||||||
|
9.0/12.0
|
||||||
|
pass
|
||||||
|
|
||||||
|
def method(self, arg2='default', arg3):
|
||||||
|
self.arg2 = arg3
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
SomeClass.another('hello')
|
||||||
|
|
||||||
|
>>> message = '''interpreter
|
||||||
|
... prompt'''
|
15
tests/sql.sql
Normal file
15
tests/sql.sql
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
-- full line comment
|
||||||
|
SELECT
|
||||||
|
d.name AS department, e.id, full_name, max(salary),
|
||||||
|
CASE WHEN e.type = 'p'
|
||||||
|
THEN 'part-time'
|
||||||
|
WHEN e.type = 'f'
|
||||||
|
THEN 'full-time'
|
||||||
|
ELSE 'special'
|
||||||
|
END
|
||||||
|
FROM employees AS e
|
||||||
|
INNER JOIN departments AS d ON e.department = d.id
|
||||||
|
GROUP BY e.department
|
||||||
|
WHERE salary > (SELECT avg(salary) FROM employees)
|
||||||
|
AND e.department IS NOT NULL
|
||||||
|
ORDER BY d.name -- inline comment
|
11
tests/xml.xml
Normal file
11
tests/xml.xml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- This is a comment -->
|
||||||
|
<e:employees xmlns:e="http://schemas.somewhere.com/employees">
|
||||||
|
<employee id="123">
|
||||||
|
<name><![CDATA[John Doe]]></name>
|
||||||
|
<title lang='en'>King</title>
|
||||||
|
<active/>
|
||||||
|
<salary>100000</salary>
|
||||||
|
<department key="R&D">R&D</department>
|
||||||
|
</employee>
|
||||||
|
</e:employees>
|
15
tests/yaml.yaml
Normal file
15
tests/yaml.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
root:
|
||||||
|
unquoted_string: lorem ipsem
|
||||||
|
quotwed_string: "lorem ipsum"
|
||||||
|
integer: 123
|
||||||
|
float: 3.14
|
||||||
|
boolean: true
|
||||||
|
null: null
|
||||||
|
list:
|
||||||
|
- one
|
||||||
|
- two
|
||||||
|
- three
|
||||||
|
map_list:
|
||||||
|
- one: 1
|
||||||
|
- two: "two"
|
||||||
|
- three: 3.0
|
Reference in New Issue
Block a user