Skip to content

Commit

Permalink
Improve code block's syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Aug 17, 2024
1 parent 791105d commit 232dbd4
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions lib/rdoc/generator/template/darkfish/css/rdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -348,16 +348,16 @@ main h6 {
}

/* 13. Syntax Highlighting */
.ruby-constant { color: #005cc5; }
.ruby-keyword { color: #d73a49; }
.ruby-ivar { color: #e36209; }
.ruby-operator { color: #005cc5; }
.ruby-identifier { color: #0f6e81; }
.ruby-node { color: #22863a; }
.ruby-comment { color: #6a737d; }
.ruby-regexp { color: #032f62; }
.ruby-value { color: #005cc5; }
.ruby-string { color: #032f62; }
.ruby-constant { color: #0366d6; } /* Bright blue for constants */
.ruby-keyword { color: #d73a49; } /* Red for keywords */
.ruby-ivar { color: #e36209; } /* Orange for instance variables */
.ruby-operator { color: #005cc5; } /* Dark blue for operators */
.ruby-identifier { color: #24292e; } /* Dark gray for identifiers */
.ruby-node { color: #22863a; } /* Green for interpolation */
.ruby-comment { color: #6a737d; } /* Gray for comments */
.ruby-regexp { color: #032f62; } /* Navy for regular expressions */
.ruby-value { color: #005cc5; } /* Dark blue for numeric values */
.ruby-string { color: #22863a; } /* Green for strings */

code {
background-color: #f0f4f8; /* Match pre background */
Expand Down Expand Up @@ -465,6 +465,7 @@ main h5, main h6 {
main p {
margin: 0 0 0.5em;
line-height: 1.5em;
font-weight: 400; /* Added to ensure paragraphs are not too thin */
}

main pre {
Expand Down

0 comments on commit 232dbd4

Please sign in to comment.