JSTheme.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. //
  2. // Copyright (c) 2014-2016 THUNDERBEAST GAMES LLC
  3. //
  4. // Permission is hereby granted, free of charge, to any person obtaining a copy
  5. // of this software and associated documentation files (the "Software"), to deal
  6. // in the Software without restriction, including without limitation the rights
  7. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. // copies of the Software, and to permit persons to whom the Software is
  9. // furnished to do so, subject to the following conditions:
  10. //
  11. // The above copyright notice and this permission notice shall be included in
  12. // all copies or substantial portions of the Software.
  13. //
  14. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  20. // THE SOFTWARE.
  21. //
  22. #pragma once
  23. namespace AtomicEditor
  24. {
  25. // //http://hilightjs.org
  26. enum JSThemeColor
  27. {
  28. JSTHEME_NORMAL,
  29. JSTHEME_LITERAL_STRING,
  30. JSTHEME_LITERAL_BOOLEAN,
  31. JSTHEME_LITERAL_NUMBER,
  32. JSTHEME_LITERAL_REGEX,
  33. JSTHEME_LITERAL_NULL,
  34. JSTHEME_KEYWORD,
  35. JSTHEME_OPERATOR,
  36. JSTHEME_FUNCTION,
  37. JSTHEME_VAR,
  38. JSTHEME_CODE,
  39. JSTHEME_COMMENT,
  40. JSTHEME_FUNCTIONDECLARG
  41. };
  42. }
  43. /*
  44. .hljs {
  45. display: block;
  46. overflow-x: auto;
  47. padding: 0.5em;
  48. background: #23241f;
  49. -webkit-text-size-adjust: none;
  50. }
  51. .hljs,
  52. .hljs-tag,
  53. .css .hljs-rules,
  54. .css .hljs-value,
  55. .aspectj .hljs-function,
  56. .css .hljs-function
  57. .hljs-preprocessor,
  58. .hljs-pragma {
  59. color: #f8f8f2;
  60. }
  61. .hljs-strongemphasis,
  62. .hljs-strong,
  63. .hljs-emphasis {
  64. color: #a8a8a2;
  65. }
  66. .hljs-bullet,
  67. .hljs-blockquote,
  68. .hljs-horizontal_rule,
  69. .hljs-number,
  70. .hljs-regexp,
  71. .alias .hljs-keyword,
  72. .hljs-literal,
  73. .hljs-hexcolor {
  74. color: #ae81ff;
  75. }
  76. .hljs-tag .hljs-value,
  77. .hljs-code,
  78. .hljs-title,
  79. .css .hljs-class,
  80. .hljs-class .hljs-title:last-child {
  81. color: #a6e22e;
  82. }
  83. .hljs-link_url {
  84. font-size: 80%;
  85. }
  86. .hljs-strong,
  87. .hljs-strongemphasis {
  88. font-weight: bold;
  89. }
  90. .hljs-emphasis,
  91. .hljs-strongemphasis,
  92. .hljs-class .hljs-title:last-child,
  93. .hljs-typename {
  94. font-style: italic;
  95. }
  96. .hljs-keyword,
  97. .ruby .hljs-class .hljs-keyword:first-child,
  98. .ruby .hljs-function .hljs-keyword,
  99. .hljs-function,
  100. .hljs-change,
  101. .hljs-winutils,
  102. .hljs-flow,
  103. .nginx .hljs-title,
  104. .tex .hljs-special,
  105. .hljs-header,
  106. .hljs-attribute,
  107. .hljs-symbol,
  108. .hljs-symbol .hljs-string,
  109. .hljs-tag .hljs-title,
  110. .hljs-value,
  111. .alias .hljs-keyword:first-child,
  112. .css .hljs-tag,
  113. .css .unit,
  114. .css .hljs-important {
  115. color: #f92672;
  116. }
  117. .hljs-function .hljs-keyword,
  118. .hljs-class .hljs-keyword:first-child,
  119. .hljs-aspect .hljs-keyword:first-child,
  120. .hljs-constant,
  121. .hljs-typename,
  122. .css .hljs-attribute {
  123. color: #66d9ef;
  124. }
  125. .hljs-variable,
  126. .hljs-params,
  127. .hljs-class .hljs-title,
  128. .hljs-aspect .hljs-title {
  129. color: #f8f8f2;
  130. }
  131. .hljs-string,
  132. .css .hljs-id,
  133. .hljs-subst,
  134. .hljs-type,
  135. .ruby .hljs-class .hljs-parent,
  136. .hljs-built_in,
  137. .django .hljs-template_tag,
  138. .django .hljs-variable,
  139. .smalltalk .hljs-class,
  140. .django .hljs-filter .hljs-argument,
  141. .smalltalk .hljs-localvars,
  142. .smalltalk .hljs-array,
  143. .hljs-attr_selector,
  144. .hljs-pseudo,
  145. .hljs-addition,
  146. .hljs-stream,
  147. .hljs-envvar,
  148. .apache .hljs-tag,
  149. .apache .hljs-cbracket,
  150. .tex .hljs-command,
  151. .hljs-prompt,
  152. .hljs-link_label,
  153. .hljs-link_url {
  154. color: #e6db74;
  155. }
  156. .hljs-comment,
  157. .hljs-javadoc,
  158. .hljs-annotation,
  159. .hljs-decorator,
  160. .hljs-pi,
  161. .hljs-doctype,
  162. .hljs-deletion,
  163. .hljs-shebang,
  164. .apache .hljs-sqbracket,
  165. .tex .hljs-formula {
  166. color: #75715e;
  167. }
  168. .coffeescript .javascript,
  169. .javascript .xml,
  170. .tex .hljs-formula,
  171. .xml .javascript,
  172. .xml .vbscript,
  173. .xml .css,
  174. .xml .hljs-cdata,
  175. .xml .php,
  176. .php .xml {
  177. opacity: 0.5;
  178. }
  179. */