Chrome extension that replaces raw/plain-text code pages with a syntax-highlighted code view and keeps a toggle back to the original text.
npm run buildThis generates:
content.bundle.jsat the repository rootdist/raw-code-highlight-chrome/for Chrome loadingdist/raw-code-highlight-chrome.zipfor sharing
- Open
chrome://extensions - Enable
Developer mode - Click
Load unpacked - Select
dist/raw-code-highlight-chrome/after running the build - For local files, open the extension card and enable
Allow access to file URLs
- Detects raw/plain-text code pages
- Replaces them with a code view
- Keeps a button to switch back to the raw page
- Supports basic code-block folding on foldable lines