Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# macOS
.DS_Store

# Dependency directories
node_modules/
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Azure DevOps PR Syntax Highlighter

A browser extension that brings syntax highlighting to file diffs in Azure DevOps pull requests, making code reviews easier and more efficient.

## Features

- **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](https://prismjs.com/) library for fast and accurate highlighting.

## Screenshots

### Before & After

![Before and After](assets/screenshots/before-after-1280-800.png)

### Side-by-side Diff

![Side-by-side Diff](assets/screenshots/side-by-side-1280-800.png)

### Inline Diff

![Inline Diff](assets/screenshots/inline-1280-800.png)

## Installation

### From the Chrome Web Store (Recommended)

[Available in the Chrome Web Store](https://chromewebstore.google.com/detail/azure-devops-pr-syntax-hi/lclohacjbfchomeeopaffkedfnbjicdn)

### Manual Installation

1. Download or clone this repository.
2. Open Google Chrome and navigate to `chrome://extensions`.
3. Enable "Developer mode" in the top right corner.
4. Click "Load unpacked" and select the directory where you downloaded the repository.

## Usage

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.

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added assets/screenshots/before-after-1280-800.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshots/inline-1280-800.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshots/side-by-side-1280-800.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"$schema": "https://json.schemastore.org/chrome-manifest",
"manifest_version": 3,
"name": "Azure DevOps PR Syntax Highlighter",
"version": "0.1.0",
"description": "Adds syntax highlighting to partial file diffs in Azure DevOps Pull Requests.",
"icons": {
"16": "icons/icon16.png",
"32": "icons/icon32.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
"16": "assets/icons/icon16.png",
"32": "assets/icons/icon32.png",
"48": "assets/icons/icon48.png",
"128": "assets/icons/icon128.png"
},
"host_permissions": [
"*://*.dev.azure.com/*",
Expand Down