Skip to content

Commit 42f3003

Browse files
Copilotsolrevdev
andcommitted
Add test post for syntax highlighting verification
Co-authored-by: solrevdev <374863+solrevdev@users.noreply.github.com>
1 parent b049320 commit 42f3003

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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.

0 commit comments

Comments
 (0)