apitome 0.0.8 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/MIT.LICENSE +2 -2
- data/README.md +99 -40
- data/app/assets/javascripts/apitome/application.js +16 -0
- data/app/assets/stylesheets/apitome/application.css +10 -0
- data/app/controllers/apitome/docs_controller.rb +83 -45
- data/app/helpers/apitome/docs_helper.rb +19 -0
- data/app/views/apitome/docs/_all_examples.html.erb +6 -2
- data/app/views/apitome/docs/_body.html.erb +1 -1
- data/app/views/apitome/docs/_curl.html.erb +1 -1
- data/app/views/apitome/docs/_endpoint.html.erb +4 -0
- data/app/views/apitome/docs/_example.html.erb +10 -6
- data/app/views/apitome/docs/_explanation.html.erb +3 -3
- data/app/views/apitome/docs/_headers.html.erb +6 -4
- data/app/views/apitome/docs/_navigation.html.erb +14 -10
- data/app/views/apitome/docs/_params.html.erb +4 -4
- data/app/views/apitome/docs/_query.html.erb +1 -1
- data/app/views/apitome/docs/_resource_explanation.html.erb +3 -0
- data/app/views/apitome/docs/_response_fields.html.erb +1 -1
- data/app/views/apitome/docs/_route.html.erb +1 -1
- data/app/views/apitome/docs/_status.html.erb +1 -1
- data/app/views/apitome/docs/index.html.erb +11 -6
- data/app/views/apitome/docs/show.html.erb +2 -1
- data/app/views/layouts/apitome/application.html.erb +4 -4
- data/config/locales/en.yml +14 -11
- data/config/locales/es.yml +14 -10
- data/lib/apitome.rb +5 -5
- data/lib/apitome/configuration.rb +36 -15
- data/lib/apitome/engine.rb +13 -7
- data/lib/apitome/exceptions.rb +5 -1
- data/lib/apitome/version.rb +1 -1
- data/lib/generators/apitome/install/POST_INSTALL +1 -1
- data/lib/generators/apitome/install/install_generator.rb +7 -8
- data/lib/generators/apitome/install/templates/initializer.rb +35 -13
- data/vendor/assets/javascripts/apitome/highlight.min.js +2 -1
- data/vendor/assets/stylesheets/apitome/highlight_themes/agate.css +108 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/androidstudio.css +66 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/arduino-light.css +88 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/arta.css +41 -126
- data/vendor/assets/stylesheets/apitome/highlight_themes/ascetic.css +31 -36
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-cave-dark.css +83 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-cave-light.css +85 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-dune-dark.css +69 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-dune-light.css +69 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-estuary-dark.css +84 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-estuary-light.css +84 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-forest-dark.css +69 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-forest-light.css +69 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-heath-dark.css +69 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-heath-light.css +69 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-lakeside-dark.css +69 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-lakeside-light.css +69 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-plateau-dark.css +84 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-plateau-light.css +84 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-savanna-dark.css +84 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-savanna-light.css +84 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-seaside-dark.css +69 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-seaside-light.css +69 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-sulphurpool-dark.css +69 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-sulphurpool-light.css +69 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/brown-paper.css +64 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/{brown_papersq.png → brown-papersq.png} +0 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/codepen-embed.css +60 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/color-brewer.css +71 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/dark.css +41 -81
- data/vendor/assets/stylesheets/apitome/highlight_themes/darkula.css +74 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/default.css +74 -110
- data/vendor/assets/stylesheets/apitome/highlight_themes/docco.css +97 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/dracula.css +76 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/far.css +46 -86
- data/vendor/assets/stylesheets/apitome/highlight_themes/foundation.css +88 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/github-gist.css +71 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/github.css +53 -81
- data/vendor/assets/stylesheets/apitome/highlight_themes/googlecode.css +48 -103
- data/vendor/assets/stylesheets/apitome/highlight_themes/grayscale.css +101 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/gruvbox-dark.css +108 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/gruvbox-light.css +108 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/hopscotch.css +83 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/hybrid.css +102 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/idea.css +40 -64
- data/vendor/assets/stylesheets/apitome/highlight_themes/ir-black.css +73 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/kimbie.dark.css +74 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/kimbie.light.css +74 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/magula.css +36 -87
- data/vendor/assets/stylesheets/apitome/highlight_themes/mono-blue.css +59 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/monokai-sublime.css +83 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/monokai.css +50 -94
- data/vendor/assets/stylesheets/apitome/highlight_themes/obsidian.css +88 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/paraiso-dark.css +72 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/paraiso-light.css +72 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/pojoaque.css +45 -66
- data/vendor/assets/stylesheets/apitome/highlight_themes/purebasic.css +96 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/qtcreator_dark.css +83 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/qtcreator_light.css +83 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/railscasts.css +106 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/rainbow.css +48 -77
- data/vendor/assets/stylesheets/apitome/highlight_themes/school-book.css +72 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/{school_book.png → school-book.png} +0 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/solarized-dark.css +84 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/solarized-light.css +84 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/sunburst.css +55 -111
- data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night-blue.css +75 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night-bright.css +74 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night-eighties.css +74 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night.css +75 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow.css +43 -20
- data/vendor/assets/stylesheets/apitome/highlight_themes/vs.css +50 -68
- data/vendor/assets/stylesheets/apitome/highlight_themes/xcode.css +55 -116
- data/vendor/assets/stylesheets/apitome/highlight_themes/xt256.css +92 -0
- data/vendor/assets/stylesheets/apitome/highlight_themes/zenburn.css +49 -84
- metadata +80 -65
- data/config/routes.rb +0 -4
- data/spec/apitome/configuration_spec.rb +0 -0
- data/spec/apitome/engine_spec.rb +0 -0
- data/spec/dummy/Rakefile +0 -7
- data/spec/dummy/config.ru +0 -15
- data/spec/dummy/config/application.rb +0 -16
- data/spec/dummy/config/boot.rb +0 -7
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -27
- data/spec/dummy/config/environments/test.rb +0 -29
- data/spec/dummy/config/initializers/apitome.rb +0 -44
- data/spec/dummy/config/routes.rb +0 -2
- data/spec/dummy/doc/api.md +0 -20
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +0 -6
- data/vendor/assets/stylesheets/apitome/highlight_themes/brown_paper.css +0 -104
- data/vendor/assets/stylesheets/apitome/highlight_themes/ir_black.css +0 -104
- data/vendor/assets/stylesheets/apitome/highlight_themes/school_book.css +0 -111
- data/vendor/assets/stylesheets/apitome/highlight_themes/solarized_dark.css +0 -88
- data/vendor/assets/stylesheets/apitome/highlight_themes/solarized_light.css +0 -88
- data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night.css +0 -52
- data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night_blue.css +0 -52
- data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night_bright.css +0 -51
- data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night_eighties.css +0 -51
@@ -0,0 +1,88 @@
|
|
1
|
+
/**
|
2
|
+
* Obsidian style
|
3
|
+
* ported by Alexander Marenin (http://github.com/ioncreature)
|
4
|
+
*/
|
5
|
+
|
6
|
+
.hljs {
|
7
|
+
display: block;
|
8
|
+
overflow-x: auto;
|
9
|
+
padding: 0.5em;
|
10
|
+
background: #282b2e;
|
11
|
+
}
|
12
|
+
|
13
|
+
.hljs-keyword,
|
14
|
+
.hljs-selector-tag,
|
15
|
+
.hljs-literal,
|
16
|
+
.hljs-selector-id {
|
17
|
+
color: #93c763;
|
18
|
+
}
|
19
|
+
|
20
|
+
.hljs-number {
|
21
|
+
color: #ffcd22;
|
22
|
+
}
|
23
|
+
|
24
|
+
.hljs {
|
25
|
+
color: #e0e2e4;
|
26
|
+
}
|
27
|
+
|
28
|
+
.hljs-attribute {
|
29
|
+
color: #668bb0;
|
30
|
+
}
|
31
|
+
|
32
|
+
.hljs-code,
|
33
|
+
.hljs-class .hljs-title,
|
34
|
+
.hljs-section {
|
35
|
+
color: white;
|
36
|
+
}
|
37
|
+
|
38
|
+
.hljs-regexp,
|
39
|
+
.hljs-link {
|
40
|
+
color: #d39745;
|
41
|
+
}
|
42
|
+
|
43
|
+
.hljs-meta {
|
44
|
+
color: #557182;
|
45
|
+
}
|
46
|
+
|
47
|
+
.hljs-tag,
|
48
|
+
.hljs-name,
|
49
|
+
.hljs-bullet,
|
50
|
+
.hljs-subst,
|
51
|
+
.hljs-emphasis,
|
52
|
+
.hljs-type,
|
53
|
+
.hljs-built_in,
|
54
|
+
.hljs-selector-attr,
|
55
|
+
.hljs-selector-pseudo,
|
56
|
+
.hljs-addition,
|
57
|
+
.hljs-variable,
|
58
|
+
.hljs-template-tag,
|
59
|
+
.hljs-template-variable {
|
60
|
+
color: #8cbbad;
|
61
|
+
}
|
62
|
+
|
63
|
+
.hljs-string,
|
64
|
+
.hljs-symbol {
|
65
|
+
color: #ec7600;
|
66
|
+
}
|
67
|
+
|
68
|
+
.hljs-comment,
|
69
|
+
.hljs-quote,
|
70
|
+
.hljs-deletion {
|
71
|
+
color: #818e96;
|
72
|
+
}
|
73
|
+
|
74
|
+
.hljs-selector-class {
|
75
|
+
color: #A082BD
|
76
|
+
}
|
77
|
+
|
78
|
+
.hljs-keyword,
|
79
|
+
.hljs-selector-tag,
|
80
|
+
.hljs-literal,
|
81
|
+
.hljs-doctag,
|
82
|
+
.hljs-title,
|
83
|
+
.hljs-section,
|
84
|
+
.hljs-type,
|
85
|
+
.hljs-name,
|
86
|
+
.hljs-strong {
|
87
|
+
font-weight: bold;
|
88
|
+
}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
/*
|
2
|
+
Paraíso (dark)
|
3
|
+
Created by Jan T. Sott (http://github.com/idleberg)
|
4
|
+
Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
|
5
|
+
*/
|
6
|
+
|
7
|
+
/* Paraíso Comment */
|
8
|
+
.hljs-comment,
|
9
|
+
.hljs-quote {
|
10
|
+
color: #8d8687;
|
11
|
+
}
|
12
|
+
|
13
|
+
/* Paraíso Red */
|
14
|
+
.hljs-variable,
|
15
|
+
.hljs-template-variable,
|
16
|
+
.hljs-tag,
|
17
|
+
.hljs-name,
|
18
|
+
.hljs-selector-id,
|
19
|
+
.hljs-selector-class,
|
20
|
+
.hljs-regexp,
|
21
|
+
.hljs-link,
|
22
|
+
.hljs-meta {
|
23
|
+
color: #ef6155;
|
24
|
+
}
|
25
|
+
|
26
|
+
/* Paraíso Orange */
|
27
|
+
.hljs-number,
|
28
|
+
.hljs-built_in,
|
29
|
+
.hljs-builtin-name,
|
30
|
+
.hljs-literal,
|
31
|
+
.hljs-type,
|
32
|
+
.hljs-params,
|
33
|
+
.hljs-deletion {
|
34
|
+
color: #f99b15;
|
35
|
+
}
|
36
|
+
|
37
|
+
/* Paraíso Yellow */
|
38
|
+
.hljs-title,
|
39
|
+
.hljs-section,
|
40
|
+
.hljs-attribute {
|
41
|
+
color: #fec418;
|
42
|
+
}
|
43
|
+
|
44
|
+
/* Paraíso Green */
|
45
|
+
.hljs-string,
|
46
|
+
.hljs-symbol,
|
47
|
+
.hljs-bullet,
|
48
|
+
.hljs-addition {
|
49
|
+
color: #48b685;
|
50
|
+
}
|
51
|
+
|
52
|
+
/* Paraíso Purple */
|
53
|
+
.hljs-keyword,
|
54
|
+
.hljs-selector-tag {
|
55
|
+
color: #815ba4;
|
56
|
+
}
|
57
|
+
|
58
|
+
.hljs {
|
59
|
+
display: block;
|
60
|
+
overflow-x: auto;
|
61
|
+
background: #2f1e2e;
|
62
|
+
color: #a39e9b;
|
63
|
+
padding: 0.5em;
|
64
|
+
}
|
65
|
+
|
66
|
+
.hljs-emphasis {
|
67
|
+
font-style: italic;
|
68
|
+
}
|
69
|
+
|
70
|
+
.hljs-strong {
|
71
|
+
font-weight: bold;
|
72
|
+
}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
/*
|
2
|
+
Paraíso (light)
|
3
|
+
Created by Jan T. Sott (http://github.com/idleberg)
|
4
|
+
Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
|
5
|
+
*/
|
6
|
+
|
7
|
+
/* Paraíso Comment */
|
8
|
+
.hljs-comment,
|
9
|
+
.hljs-quote {
|
10
|
+
color: #776e71;
|
11
|
+
}
|
12
|
+
|
13
|
+
/* Paraíso Red */
|
14
|
+
.hljs-variable,
|
15
|
+
.hljs-template-variable,
|
16
|
+
.hljs-tag,
|
17
|
+
.hljs-name,
|
18
|
+
.hljs-selector-id,
|
19
|
+
.hljs-selector-class,
|
20
|
+
.hljs-regexp,
|
21
|
+
.hljs-link,
|
22
|
+
.hljs-meta {
|
23
|
+
color: #ef6155;
|
24
|
+
}
|
25
|
+
|
26
|
+
/* Paraíso Orange */
|
27
|
+
.hljs-number,
|
28
|
+
.hljs-built_in,
|
29
|
+
.hljs-builtin-name,
|
30
|
+
.hljs-literal,
|
31
|
+
.hljs-type,
|
32
|
+
.hljs-params,
|
33
|
+
.hljs-deletion {
|
34
|
+
color: #f99b15;
|
35
|
+
}
|
36
|
+
|
37
|
+
/* Paraíso Yellow */
|
38
|
+
.hljs-title,
|
39
|
+
.hljs-section,
|
40
|
+
.hljs-attribute {
|
41
|
+
color: #fec418;
|
42
|
+
}
|
43
|
+
|
44
|
+
/* Paraíso Green */
|
45
|
+
.hljs-string,
|
46
|
+
.hljs-symbol,
|
47
|
+
.hljs-bullet,
|
48
|
+
.hljs-addition {
|
49
|
+
color: #48b685;
|
50
|
+
}
|
51
|
+
|
52
|
+
/* Paraíso Purple */
|
53
|
+
.hljs-keyword,
|
54
|
+
.hljs-selector-tag {
|
55
|
+
color: #815ba4;
|
56
|
+
}
|
57
|
+
|
58
|
+
.hljs {
|
59
|
+
display: block;
|
60
|
+
overflow-x: auto;
|
61
|
+
background: #e7e9db;
|
62
|
+
color: #4f424c;
|
63
|
+
padding: 0.5em;
|
64
|
+
}
|
65
|
+
|
66
|
+
.hljs-emphasis {
|
67
|
+
font-style: italic;
|
68
|
+
}
|
69
|
+
|
70
|
+
.hljs-strong {
|
71
|
+
font-weight: bold;
|
72
|
+
}
|
@@ -6,99 +6,78 @@ Based on Solarized Style from http://ethanschoonover.com/solarized
|
|
6
6
|
|
7
7
|
*/
|
8
8
|
|
9
|
-
|
10
|
-
display: block;
|
11
|
-
|
9
|
+
.hljs {
|
10
|
+
display: block;
|
11
|
+
overflow-x: auto;
|
12
|
+
padding: 0.5em;
|
13
|
+
color: #dccf8f;
|
12
14
|
background: url(./pojoaque.jpg) repeat scroll left top #181914;
|
13
15
|
}
|
14
16
|
|
15
|
-
|
16
|
-
|
17
|
-
pre .diff .header,
|
18
|
-
pre .doctype,
|
19
|
-
pre .lisp .string,
|
20
|
-
pre .javadoc {
|
17
|
+
.hljs-comment,
|
18
|
+
.hljs-quote {
|
21
19
|
color: #586e75;
|
22
20
|
font-style: italic;
|
23
21
|
}
|
24
22
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
pre .addition,
|
31
|
-
pre .css .tag,
|
32
|
-
pre .clojure .title,
|
33
|
-
pre .nginx .title {
|
34
|
-
color: #B64926;
|
23
|
+
.hljs-keyword,
|
24
|
+
.hljs-selector-tag,
|
25
|
+
.hljs-literal,
|
26
|
+
.hljs-addition {
|
27
|
+
color: #b64926;
|
35
28
|
}
|
36
29
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
pre .phpdoc,
|
42
|
-
pre .tex .formula,
|
43
|
-
pre .regexp,
|
44
|
-
pre .hexcolor {
|
30
|
+
.hljs-number,
|
31
|
+
.hljs-string,
|
32
|
+
.hljs-doctag,
|
33
|
+
.hljs-regexp {
|
45
34
|
color: #468966;
|
46
35
|
}
|
47
36
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
pre .built_in,
|
54
|
-
pre .lisp .title,
|
55
|
-
pre .clojure .built_in,
|
56
|
-
pre .identifier,
|
57
|
-
pre .id {
|
58
|
-
color: #FFB03B;
|
37
|
+
.hljs-title,
|
38
|
+
.hljs-section,
|
39
|
+
.hljs-built_in,
|
40
|
+
.hljs-name {
|
41
|
+
color: #ffb03b;
|
59
42
|
}
|
60
43
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
pre .class .title,
|
67
|
-
pre .parent,
|
68
|
-
pre .haskell .type {
|
44
|
+
.hljs-variable,
|
45
|
+
.hljs-template-variable,
|
46
|
+
.hljs-class .hljs-title,
|
47
|
+
.hljs-type,
|
48
|
+
.hljs-tag {
|
69
49
|
color: #b58900;
|
70
50
|
}
|
71
51
|
|
72
|
-
|
52
|
+
.hljs-attribute {
|
73
53
|
color: #b89859;
|
74
54
|
}
|
75
55
|
|
76
|
-
|
77
|
-
|
56
|
+
.hljs-symbol,
|
57
|
+
.hljs-bullet,
|
58
|
+
.hljs-link,
|
59
|
+
.hljs-subst,
|
60
|
+
.hljs-meta {
|
61
|
+
color: #cb4b16;
|
78
62
|
}
|
79
63
|
|
80
|
-
|
64
|
+
.hljs-deletion {
|
65
|
+
color: #dc322f;
|
66
|
+
}
|
67
|
+
|
68
|
+
.hljs-selector-id,
|
69
|
+
.hljs-selector-class {
|
81
70
|
color: #d3a60c;
|
82
71
|
}
|
83
72
|
|
84
|
-
|
85
|
-
|
86
|
-
pre .shebang,
|
87
|
-
pre .symbol,
|
88
|
-
pre .symbol .string,
|
89
|
-
pre .diff .change,
|
90
|
-
pre .special,
|
91
|
-
pre .attr_selector,
|
92
|
-
pre .important,
|
93
|
-
pre .subst,
|
94
|
-
pre .cdata {
|
95
|
-
color: #cb4b16;
|
73
|
+
.hljs-formula {
|
74
|
+
background: #073642;
|
96
75
|
}
|
97
76
|
|
98
|
-
|
99
|
-
|
77
|
+
.hljs-emphasis {
|
78
|
+
font-style: italic;
|
100
79
|
}
|
101
80
|
|
102
|
-
|
103
|
-
|
81
|
+
.hljs-strong {
|
82
|
+
font-weight: bold;
|
104
83
|
}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
PureBASIC native IDE style ( version 1.0 - April 2016 )
|
4
|
+
|
5
|
+
by Tristano Ajmone <tajmone@gmail.com>
|
6
|
+
|
7
|
+
Public Domain
|
8
|
+
|
9
|
+
NOTE_1: PureBASIC code syntax highlighting only applies the following classes:
|
10
|
+
.hljs-comment
|
11
|
+
.hljs-function
|
12
|
+
.hljs-keywords
|
13
|
+
.hljs-string
|
14
|
+
.hljs-symbol
|
15
|
+
|
16
|
+
Other classes are added here for the benefit of styling other languages with the look and feel of PureBASIC native IDE style.
|
17
|
+
If you need to customize a stylesheet for PureBASIC only, remove all non-relevant classes -- PureBASIC-related classes are followed by
|
18
|
+
a "--- used for PureBASIC ... ---" comment on same line.
|
19
|
+
|
20
|
+
NOTE_2: Color names provided in comments were derived using "Name that Color" online tool:
|
21
|
+
http://chir.ag/projects/name-that-color
|
22
|
+
*/
|
23
|
+
|
24
|
+
.hljs { /* Common set of rules required by highlight.js (don'r remove!) */
|
25
|
+
display: block;
|
26
|
+
overflow-x: auto;
|
27
|
+
padding: 0.5em;
|
28
|
+
background: #FFFFDF; /* Half and Half (approx.) */
|
29
|
+
/* --- Uncomment to add PureBASIC native IDE styled font!
|
30
|
+
font-family: Consolas;
|
31
|
+
*/
|
32
|
+
}
|
33
|
+
|
34
|
+
.hljs, /* --- used for PureBASIC base color --- */
|
35
|
+
.hljs-type, /* --- used for PureBASIC Procedures return type --- */
|
36
|
+
.hljs-function, /* --- used for wrapping PureBASIC Procedures definitions --- */
|
37
|
+
.hljs-name,
|
38
|
+
.hljs-number,
|
39
|
+
.hljs-attr,
|
40
|
+
.hljs-params,
|
41
|
+
.hljs-subst {
|
42
|
+
color: #000000; /* Black */
|
43
|
+
}
|
44
|
+
|
45
|
+
.hljs-comment, /* --- used for PureBASIC Comments --- */
|
46
|
+
.hljs-regexp,
|
47
|
+
.hljs-section,
|
48
|
+
.hljs-selector-pseudo,
|
49
|
+
.hljs-addition {
|
50
|
+
color: #00AAAA; /* Persian Green (approx.) */
|
51
|
+
}
|
52
|
+
|
53
|
+
.hljs-title, /* --- used for PureBASIC Procedures Names --- */
|
54
|
+
.hljs-tag,
|
55
|
+
.hljs-variable,
|
56
|
+
.hljs-code {
|
57
|
+
color: #006666; /* Blue Stone (approx.) */
|
58
|
+
}
|
59
|
+
|
60
|
+
.hljs-keyword, /* --- used for PureBASIC Keywords --- */
|
61
|
+
.hljs-class,
|
62
|
+
.hljs-meta-keyword,
|
63
|
+
.hljs-selector-class,
|
64
|
+
.hljs-built_in,
|
65
|
+
.hljs-builtin-name {
|
66
|
+
color: #006666; /* Blue Stone (approx.) */
|
67
|
+
font-weight: bold;
|
68
|
+
}
|
69
|
+
|
70
|
+
.hljs-string, /* --- used for PureBASIC Strings --- */
|
71
|
+
.hljs-selector-attr {
|
72
|
+
color: #0080FF; /* Azure Radiance (approx.) */
|
73
|
+
}
|
74
|
+
|
75
|
+
.hljs-symbol, /* --- used for PureBASIC Constants --- */
|
76
|
+
.hljs-link,
|
77
|
+
.hljs-deletion,
|
78
|
+
.hljs-attribute {
|
79
|
+
color: #924B72; /* Cannon Pink (approx.) */
|
80
|
+
}
|
81
|
+
|
82
|
+
.hljs-meta,
|
83
|
+
.hljs-literal,
|
84
|
+
.hljs-selector-id {
|
85
|
+
color: #924B72; /* Cannon Pink (approx.) */
|
86
|
+
font-weight: bold;
|
87
|
+
}
|
88
|
+
|
89
|
+
.hljs-strong,
|
90
|
+
.hljs-name {
|
91
|
+
font-weight: bold;
|
92
|
+
}
|
93
|
+
|
94
|
+
.hljs-emphasis {
|
95
|
+
font-style: italic;
|
96
|
+
}
|