--- title: Code Components last_edited: '2025-07-30T02:30:04.636Z' auto_generated: false --- Several components have been implemented to help out with software documentation. ## Code Blocks For multiline code samples, use triple backticks. You can also specify which language is used in the fenced code block for associated code highlighting. ```javascript js function greet(name) { return `Hello, ${name}!` } ``` ### Syntax Highlighting TinaDocs uses [Shiki](https://shiki.style/) to power code block rendering, because of this you are able to also use [Shiki's Transformer Notation](https://shiki.style/guide/transformers) for special highlighting. ```javascript console.log('This is a highlighted block') // [!code highlight] It uses "[!code highlight]" in a comment after the code ``` ### Diff Highlighting ```javascript console.log('This is a negative diff') // [!code --] console.log('This is a positive diff') // [!code ++] It uses "[!code --]" or "[!code ++]" in a comment after the code ``` ### Focused Highlighting ```javascript console.log('Junk Code'); console.log('Focused Code'); // [!code focus] console.log('More hidden code'); It uses "[!code focus]" in a comment after the code ``` ## Tabbed Code Blocks Tabbed code blocks let you present multiple language variants or configurations side-by-side—ideal for showing equivalent code in JavaScript, TypeScript, Bash, or specific queries and responses. This improves readability and UX for polyglot dev environments. \n������

Count:�{count}

\n�������setCount(count�+�1)}>Increment\n����\n��);\n}\n\nexport�default�Counter;", language: "javascript" }, { name: "Vue", content: "