Syntax highlighting for .diff and .patch files in IntelliJ IDEA and other JetBrains IDEs.
- Download from plugins.jetbrains.com
- Download from github
- or simply use IntelliJ's plugin manager and search for Diff / Patch File Support
This project was built using Java 11 and Gradle 6.7.1.
In order to open this project in IntelliJ IDEA, follow these steps:
- Install Java 11 JDK
- Define a project SDK named 11. If you have a Java 11 SDK already, you may choose to rename or clone it.
- Open the project and wait for IntelliJ to download the required libraries.
(This may take a long time, because several hundred MBs are downloaded.)
Now, there are two run configurations, Run in IDE and Build Plugin.
- Run in IDE allows you to launch an IntelliJ Community Edition with the plugin enabled.
The IDE version is configured inbuild.gradle
. Required files will be automatically downloaded.
You can find version numbers here: stable | snapshots. See section com.jetbrains.intellij.idea. You can use Version or Build Number. - Build Plugin will generate
build/distributions/intellij-diff-plugin-*.zip
, which you can install in your JetBrains IDE.
To find out more about plugin development, please refer to the excellent official documentation: http://www.jetbrains.org/intellij/sdk/docs/
If you develop under Windows, and see the warning
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs
at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
then simply run the file fix-jdk-warning-in-windows.reg
, and confirm the dialogs.