Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
raikrahul committed Jan 25, 2025
1 parent 7719010 commit b1d5393
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
13 changes: 13 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ author: Rahul
# Theme and markdown settings
theme: jekyll-theme-minimal
markdown: kramdown
# _config.yml
markdown: kramdown
highlighter: rouge
kramdown:
syntax_highlighter: rouge
syntax_highlighter_opts:
css_class: highlight
span:
line_numbers: false
block:
line_numbers: true
start_line: 1


# Plugins
plugins:
Expand Down
2 changes: 1 addition & 1 deletion _posts/2024-01-25-lesson0.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Make sure you have:
Here’s the simplest program in Rust:


```
```rust
fn main() {
// Function Definition (1)
// - `fn` is the keyword that declares a function in Rust.
Expand Down
1 change: 1 addition & 0 deletions _posts/2024-01-26-lesson1.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ fn main() {
let x = 5; // Immutable variable
println!("The value of x is: {}", x);
}
```
15 changes: 14 additions & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,17 @@ main code {
ul, ol {
margin: 1em 0;
padding-left: 2em;
}
}


/* Add this to your CSS file */
.highlight { background-color: #f8f8f8; }
.highlight .c { color: #408080; font-style: italic } /* Comment */
.highlight .k { color: #008000; font-weight: bold } /* Keyword */
.highlight .n { color: #000000 } /* Name */
.highlight .nf { color: #0000FF } /* Name.Function */
.highlight .s { color: #BA2121 } /* Literal.String */
.highlight .mi { color: #666666 } /* Literal.Number.Integer */
.highlight .p { color: #000000 } /* Punctuation */
.highlight .o { color: #666666 } /* Operator */
.highlight .cp { color: #BC7A00 } /* Comment.Preproc */

0 comments on commit b1d5393

Please sign in to comment.