File size: 1,274 Bytes
b27bfb3
 
 
 
1
2
3
4
5
{"type": "session", "harness": "opencode", "id": "doc-0001", "name": "Markdown code blocks and syntax highlighting"}
{"type": "message", "message": {"role": "system", "content": "You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies."}}
{"type": "message", "message": {"role": "user", "content": "How to use code blocks in Markdown"}}
{"type": "message", "message": {"role": "assistant", "content": "Fenced code blocks use triple backticks with optional language identifier:\n\nThree backticks then language name on the same line, code on following lines, three backticks to close.\n\nSupported languages for syntax highlighting on GitHub: python, javascript, typescript, cpp, java, rust, go, bash, powershell, json, yaml, toml, xml, html, css, sql, ruby, php, swift, kotlin, csharp, scala, haskell, lua, perl, r, matlab, latex, markdown.\n\nInline code uses single backticks around the text.\n\nIndented code blocks use 4 spaces or 1 tab of indentation."}}