-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GDScript Syntax Highlighting (#25)
Co-authored-by: Jowan-Spooner <[email protected]>
- Loading branch information
1 parent
1b84435
commit c67b237
Showing
5 changed files
with
416 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); | ||
|
||
/* Godot Engine Syntax Colors, optimised for ayu. */ | ||
:root { | ||
--dialogic_keyword-color: #aa7cff; | ||
--background-color: #202531; | ||
--text-color: #ccced3; | ||
--code-tabs-background-color: #353c4c; | ||
--symbol-color: #abc8ff; | ||
--keyword-color: #ff7085; | ||
--control_flow_keyword-color: #ff8ccc; | ||
--base_type-color: #42ffc2; | ||
--engine_type-color: #8effda; | ||
--comment-color: grey; | ||
--string-color: #ffeca1; | ||
--number-color: #a1ffe0; | ||
--function_definition-color: #ccced3; | ||
--decorator-color: #ffb373; | ||
--monospace-font-family: "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, Courier, monospace; | ||
} | ||
|
||
|
||
code.hljs { | ||
color: var(--text-color); | ||
font-family: var(--monospace-font-family); | ||
background-color: var(--background-color) | ||
} | ||
|
||
/* Godot specific highlight.js settings */ | ||
code.hljs .hljs-decorator { color: var(--decorator-color); } | ||
code.hljs .hljs-dialogic_keyword { color: var(--dialogic_keyword-color); } | ||
|
||
|
||
code.hljs .hljs-symbol { color: var(--symbol-color); } | ||
|
||
code.hljs .hljs-keyword { color: var(--keyword-color); } | ||
|
||
code.hljs .hljs-control_flow_keyword { color: var(--control_flow_keyword-color); } | ||
|
||
code.hljs .hljs-base_type { color: var(--base_type-color); } | ||
|
||
code.hljs .hljs-engine_type { color: var(--engine_type-color); } | ||
|
||
code.hljs .hljs-comment { color: var(--comment-color); } | ||
|
||
code.hljs .hljs-string { color: var(--string-color)} | ||
|
||
code.hljs .hljs-number { color: var(--number-color); } | ||
|
||
code.hljs .hljs-title { color: var(--function_definition-color); } | ||
|
||
code.hljs .hljs-name, | ||
code.hljs .hljs-tag, | ||
code.hljs .hljs-attr { | ||
color: var(--html-color); | ||
} | ||
|
||
code { | ||
display: block; | ||
position: relative; | ||
font-size: 0.9em; | ||
text-align: initial; | ||
tab-size: 4; | ||
} | ||
|
||
.inline_code { | ||
background-color: grey; | ||
color: rgba(255, 255, 255, 0.75); | ||
border: none; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
/* | ||
* An increased contrast highlighting scheme loosely based on the | ||
* "Base16 Atelier Dune Light" theme by Bram de Haan | ||
* (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune) | ||
* Original Base16 color scheme by Chris Kempson | ||
* (https://github.com/chriskempson/base16) | ||
*/ | ||
|
||
/* | ||
* Godot Engine Syntax Colors, optimised for ayu, not all values are used in | ||
* theme. | ||
*/ | ||
:root { | ||
--dialogic_keyword-color: #aa7cff; | ||
--background-color: #202531; | ||
--text-color: #ccced3; | ||
--code-tabs-background-color: #353c4c; | ||
--symbol-color: #abc8ff; | ||
--keyword-color: #ff7085; | ||
--control_flow_keyword-color: #ff8ccc; | ||
--base_type-color: #42ffc2; | ||
--engine_type-color: #8effda; | ||
--comment-color: grey; | ||
--string-color: #ffeca1; | ||
--number-color: #a1ffe0; | ||
--function_definition-color: #ccced3; | ||
|
||
/* Optimised for this light theme: */ | ||
--decorator-color: #b95c11; | ||
--monospace-font-family: "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, Courier, monospace; | ||
} | ||
|
||
/* Godot specific highlight.js settings */ | ||
code.hljs .hljs-decorator { color: var(--decorator-color); } | ||
code.hljs .hljs-dialogic_keyword { color: var(--dialogic_keyword-color); } | ||
|
||
/* Comment */ | ||
.hljs-comment, | ||
.hljs-quote { | ||
color: #575757; | ||
} | ||
|
||
/* Red */ | ||
.hljs-variable, | ||
.hljs-template-variable, | ||
.hljs-attribute, | ||
.hljs-tag, | ||
.hljs-name, | ||
.hljs-regexp, | ||
.hljs-link, | ||
.hljs-name, | ||
.hljs-selector-id, | ||
.hljs-selector-class { | ||
color: #d70025; | ||
} | ||
|
||
/* Orange */ | ||
.hljs-number, | ||
.hljs-meta, | ||
.hljs-built_in, | ||
.hljs-builtin-name, | ||
.hljs-literal, | ||
.hljs-type, | ||
.hljs-params { | ||
color: #b21e00; | ||
} | ||
|
||
/* Green */ | ||
.hljs-string, | ||
.hljs-symbol, | ||
.hljs-bullet { | ||
color: #008200; | ||
} | ||
|
||
/* Blue */ | ||
.hljs-title, | ||
.hljs-section { | ||
color: #516ddf; | ||
} | ||
|
||
/* Purple */ | ||
.hljs-keyword, | ||
.hljs-selector-tag { | ||
color: #9d00ec; | ||
} | ||
|
||
.hljs { | ||
display: block; | ||
overflow-x: auto; | ||
background: #f6f7f6; | ||
color: #000; | ||
} | ||
|
||
.hljs-emphasis { | ||
font-style: italic; | ||
} | ||
|
||
.hljs-strong { | ||
font-weight: bold; | ||
} | ||
|
||
.hljs-addition { | ||
color: #22863a; | ||
background-color: #f0fff4; | ||
} | ||
|
||
.hljs-deletion { | ||
color: #b31d28; | ||
background-color: #ffeef0; | ||
} |
Oops, something went wrong.