A browser extension that brings syntax highlighting to file diffs in Azure DevOps, including Pull Requests. Making code reviews easier and more efficient.
- Syntax Highlighting: Automatically applies syntax highlighting to code in pull request diffs.
- Language Detection: Detects the programming language based on file extensions.
- Theme Support: Seamlessly integrates with both light and dark themes in Azure DevOps.
- Powered by Prism: Utilizes the popular Prism library for fast and accurate highlighting.
- Cross-Browser Support: Available for both Chrome and Firefox.
- Custom Domains Support: Works with self-hosted (on-premise) and other custom Azure DevOps domains via a simple configuration page.
- Custom File Type Mapping: Map specific file patterns (e.g.,
*.myext,myfile.ext) to a syntax highlighting language of your choice.
Available in the Chrome Web Store
- Go to the latest release.
- Download the
chrome-extension.zipfile. - Unzip the file (you will get a folder named
chrome-extension). - Open Google Chrome and navigate to
chrome://extensions. - Enable "Developer mode" in the top right corner.
- Click "Load unpacked" and select the unzipped
chrome-extensionfolder.
Available in the Firefox Add-on Store
- Go to the latest release.
- Download the
firefox-extension.zipfile. - Unzip the file (you will get a folder named
firefox-extension) - Open Firefox and navigate to
about:debugging#/runtime/this-firefox. - Click "Load Temporary Add-on".
- Navigate to the extension directory and select the
manifest.jsonfile.
Note: This is a temporary add-on and will need to be reloaded every time you restart Firefox.
Once installed, the extension will automatically apply syntax highlighting to files in any Azure DevOps pull request you view. There are no additional steps required.
The extension's options page allows you to customize its behavior. You can access it through your browser's extension management page, usually by right-clicking the extension icon and selecting "Options".
If you use a self-hosted or custom domain for Azure DevOps (e.g., devops.mycompany.com), you'll need to grant the extension permission to access it.
- Open the extension options.
- In the "Manage Custom Hosts" section, enter the hostname (e.g.,
devops.mycompany.com). - Click "Add Host". Your browser will ask you to confirm the permission.
You can override the default language detection by mapping specific file patterns to a language. This is useful for files with non-standard extensions or for file types that aren't automatically recognized.
- Open the extension options.
- Go to the "Custom File Type Mappings" section.
- Enter a file pattern (e.g.,
*.myext,Jenkinsfile,*.config.json). - Select the desired language from the dropdown.
- Click "Add Pattern".
Custom patterns take priority over the default language detection.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
- Clone this repository.
- Run
make package. This will build and zip both extensions into the/distdirectory. - You can then load the unpacked build directories (
dist/chrome_buildanddist/firefox_build) into your browser for testing.
This project is licensed under the MIT License - see the LICENSE file for details.



