purebasic.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. pre code.hljs {
  2. display: block;
  3. overflow-x: auto;
  4. padding: 1em
  5. }
  6. code.hljs {
  7. padding: 3px 5px
  8. }
  9. /*
  10. PureBASIC native IDE style ( version 1.0 - April 2016 )
  11. by Tristano Ajmone <tajmone@gmail.com>
  12. Public Domain
  13. NOTE_1: PureBASIC code syntax highlighting only applies the following classes:
  14. .hljs-comment
  15. .hljs-function
  16. .hljs-keywords
  17. .hljs-string
  18. .hljs-symbol
  19. Other classes are added here for the benefit of styling other languages with the look and feel of PureBASIC native IDE style.
  20. If you need to customize a stylesheet for PureBASIC only, remove all non-relevant classes -- PureBASIC-related classes are followed by
  21. a "--- used for PureBASIC ... ---" comment on same line.
  22. NOTE_2: Color names provided in comments were derived using "Name that Color" online tool:
  23. http://chir.ag/projects/name-that-color
  24. */
  25. .hljs {
  26. background: #FFFFDF/* Half and Half (approx.) */
  27. }
  28. /* --- used for PureBASIC base color --- */
  29. /* --- used for PureBASIC Procedures return type --- */
  30. /* --- used for wrapping PureBASIC Procedures definitions --- */
  31. .hljs,
  32. .hljs-type,
  33. .hljs-function,
  34. .hljs-name,
  35. .hljs-number,
  36. .hljs-attr,
  37. .hljs-params,
  38. .hljs-subst {
  39. color: #000000/* Black */
  40. }
  41. /* --- used for PureBASIC Comments --- */
  42. .hljs-comment,
  43. .hljs-regexp,
  44. .hljs-section,
  45. .hljs-selector-pseudo,
  46. .hljs-addition {
  47. color: #00AAAA/* Persian Green (approx.) */
  48. }
  49. /* --- used for PureBASIC Keywords --- */
  50. .hljs-keyword,
  51. .hljs-class,
  52. .hljs-meta .hljs-keyword,
  53. .hljs-selector-class,
  54. .hljs-built_in {
  55. color: #006666;
  56. /* Blue Stone (approx.) */
  57. font-weight: bold
  58. }
  59. /* --- used for PureBASIC Procedures Names --- */
  60. .hljs-title,
  61. .hljs-tag,
  62. .hljs-variable,
  63. .hljs-code {
  64. color: #006666/* Blue Stone (approx.) */
  65. }
  66. /* --- used for PureBASIC Strings --- */
  67. .hljs-string,
  68. .hljs-selector-attr {
  69. color: #0080FF/* Azure Radiance (approx.) */
  70. }
  71. /* --- used for PureBASIC Constants --- */
  72. .hljs-symbol,
  73. .hljs-link,
  74. .hljs-deletion,
  75. .hljs-attribute {
  76. color: #924B72/* Cannon Pink (approx.) */
  77. }
  78. .hljs-meta,
  79. .hljs-literal,
  80. .hljs-selector-id {
  81. color: #924B72;
  82. /* Cannon Pink (approx.) */
  83. font-weight: bold
  84. }
  85. .hljs-strong,
  86. .hljs-name {
  87. font-weight: bold
  88. }
  89. .hljs-emphasis {
  90. font-style: italic
  91. }