purebasic.css 2.6 KB

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