File tree Expand file tree Collapse file tree 1 file changed +73
-0
lines changed
Expand file tree Collapse file tree 1 file changed +73
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ layout : post
3+ title : Test GitHub Syntax Highlighting
4+ author : Test Author
5+ tags :
6+ - test
7+ - syntax-highlighting
8+ - github
9+ ---
10+
11+ Testing the new GitHub-like syntax highlighting across different languages to ensure consistency.
12+
13+ ## Bash Example
14+
15+ ``` bash
16+ #! /bin/bash
17+ echo " Testing bash syntax highlighting"
18+ for file in * .txt; do
19+ if [[ -f " $file " ]]; then
20+ echo " Processing: $file "
21+ wc -l " $file "
22+ fi
23+ done
24+ ```
25+
26+ ## PowerShell Example
27+
28+ ``` powershell
29+ Write-Host "Testing PowerShell syntax highlighting"
30+ Get-ChildItem -Path "*.txt" | ForEach-Object {
31+ if (Test-Path $_.FullName) {
32+ Write-Output "Processing: $($_.Name)"
33+ (Get-Content $_.FullName).Count
34+ }
35+ }
36+ ```
37+
38+ ## JSON Configuration
39+
40+ ``` json
41+ {
42+ "name" : " test-project" ,
43+ "version" : " 1.0.0" ,
44+ "scripts" : {
45+ "build" : " webpack --mode production" ,
46+ "test" : " jest --coverage"
47+ },
48+ "dependencies" : {
49+ "express" : " ^4.18.0" ,
50+ "lodash" : " ^4.17.21"
51+ }
52+ }
53+ ```
54+
55+ ## YAML Configuration
56+
57+ ``` yaml
58+ name : Build and Test
59+ on :
60+ push :
61+ branches : [main, develop]
62+ jobs :
63+ test :
64+ runs-on : ubuntu-latest
65+ steps :
66+ - uses : actions/checkout@v3
67+ - name : Setup Node.js
68+ uses : actions/setup-node@v3
69+ with :
70+ node-version : ' 18'
71+ ` ` `
72+
73+ This should demonstrate consistent highlighting across different code languages.
You can’t perform that action at this time.
0 commit comments