File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed
Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,12 @@ <h1>Pascal - Readable, Reliable Programming</h1>
1212< section class ="content-section ">
1313 < div class ="container ">
1414 < h2 class ="section-title "> Clean, Readable Code</ h2 >
15- < div class ="highlight ">
16- < pre class ="chroma "> < code > < span class ="k "> program</ span > < span class ="n "> HelloWorld</ span > ;
17- < span class ="k "> begin</ span >
18- < span class ="nf "> writeln</ span > (< span class ="s1 "> 'Hello, World!'</ span > );
19- < span class ="nf "> writeln</ span > (< span class ="s1 "> 'Welcome to Pascal programming'</ span > );
20- < span class ="k "> end</ span > .</ code > </ pre >
21- </ div >
15+ {{ $codeExample := `program HelloWorld;
16+ begin
17+ writeln('Hello, World!');
18+ writeln('Welcome to Pascal programming');
19+ end.` }}
20+ {{ highlight $codeExample "objectpascal" "linenos=false" }}
2221 </ div >
2322</ section >
2423
Original file line number Diff line number Diff line change @@ -66,6 +66,14 @@ body {
6666 transition : var (--transition );
6767}
6868
69+ /* Dark theme adjustments for syntax highlighting */
70+ [data-theme = "dark" ] .chroma { background-color : var (--code-bg ) !important ; color : var (--text-primary ) !important ; }
71+ [data-theme = "dark" ] .highlight { background-color : var (--code-bg ) !important ; }
72+ [data-theme = "dark" ] .highlight > div { background-color : var (--code-bg ) !important ; }
73+ [data-theme = "dark" ] .highlight pre { background-color : var (--code-bg ) !important ; color : var (--text-primary ) !important ; }
74+ [data-theme = "dark" ] .chroma .lntable { background-color : var (--code-bg ) !important ; }
75+ [data-theme = "dark" ] .chroma .lntd { background-color : var (--code-bg ) !important ; }
76+
6977/* Container */
7078.container {
7179 max-width : var (--container-max-width );
You can’t perform that action at this time.
0 commit comments