Roo-Code/webview-ui
KJ7LNW 9317765fb1
Fix: Missing or inconsistent syntax highlighting across UI components (#3656)
* fix: Missing or inconsistent syntax highlighting across UI components

- Change file listings to use 'shellsession' for terminal-like highlighting
- Use 'markdown' for code definitions and instructions
- Add file extension-based language detection for new files
- Ensure consistent 'diff' highlighting for all diff content
- Use 'xml' language for error messages
- Make language property required in CodeAccordian
- Set default fallback to 'txt' instead of undefined

Fixes: #3655
Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* chore: make language property required in CodeBlock

- Updated CodeBlockProps interface to make language property required
- Updated mock implementation to match the interface change
- Ensured CodeAccordian always provides a fallback language value

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

---------

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>
Co-authored-by: Eric Wheeler <roo-code@z.ewheeler.org>
2025-05-20 22:29:57 -04:00
..
.storybook Additional @shadcn/ui components 2025-02-14 23:41:39 -08:00
audio feat: move play audio to webview to ensure cross-platform (#3659) 2025-05-20 01:15:05 -04:00
public Remove CRA cruft 2025-01-30 14:38:41 -08:00
src Fix: Missing or inconsistent syntax highlighting across UI components (#3656) 2025-05-20 22:29:57 -04:00
.eslintrc.json fix: command validation failing on shell array indexing (#3530) 2025-05-12 21:31:54 -07:00
.gitignore PR cleanup 2025-03-12 11:23:06 -04:00
.npmrc Improved logic for auto-approving chained commands 2024-12-26 22:45:09 -08:00
components.json Remove lucide 2025-01-30 14:47:59 -08:00
index.html Fix linter warning + run prettier on everything (#3581) 2025-05-13 15:16:24 -07:00
jest.config.cjs Fix linter warning + run prettier on everything (#3581) 2025-05-13 15:16:24 -07:00
package-lock.json feat: move play audio to webview to ensure cross-platform (#3659) 2025-05-20 01:15:05 -04:00
package.json feat: move play audio to webview to ensure cross-platform (#3659) 2025-05-20 01:15:05 -04:00
tsconfig.json build: enable source maps for improved debugging (#3596) 2025-05-14 13:46:53 -04:00
vite.config.ts feat: move play audio to webview to ensure cross-platform (#3659) 2025-05-20 01:15:05 -04:00