highlightjs / highlight.js

JavaScript syntax highlighter with language auto-detection and zero dependencies.
https://highlightjs.org/
BSD 3-Clause "New" or "Revised" License
23.3k stars 3.52k forks source link

fix(monokai attr & number yaml syntax) #4067

Closed Yghore closed 1 week ago

Yghore commented 1 week ago

Monokai attr & number missing for yaml syntax

Changes


index ef10ef8c..5b28d7bb 100644
--- a/src/styles/monokai.css
+++ b/src/styles/monokai.css
@@ -12,6 +12,7 @@ Monokai style - ported by Luigi Maselli - http://grigio.org
 .hljs-selector-tag,
 .hljs-literal,
 .hljs-strong,
+.hljs-number,
 .hljs-name {
   color: #f92672;
 }
@@ -21,6 +22,7 @@ Monokai style - ported by Luigi Maselli - http://grigio.org
 }

 .hljs-attribute,
+.hljs-attr,
 .hljs-symbol,
 .hljs-regexp,
 .hljs-link {

DEMO