A Visual Studio Code extension that highlights changes in files by marking inserted lines with + and deleted lines with −. This extension is particularly useful for comparing file changes in a structured and syntax-highlighted way.
- Syntax Highlighting: Provides syntax highlighting for
.cfcfiles, marking inserted lines with+and deleted lines with−. - Custom Grammar: Includes a TextMate grammar for
.cfcfiles to tokenize and highlight changes. - Language Configuration: Supports auto-closing pairs, surrounding pairs, and comment tokens for
.cfcfiles.
-
Install the Extension: Click button "Install" to download
-
Compare Files:
- Use the provided Python script CompareFolder.py to generate
.cfcfiles that highlight changes between two folders. - Run the script with the following command:
python CompareFolder.py "original_folder" -mo "modified_folder" -o "output_folder"
- Open the generated
.cfcfiles in VS Code to view the highlighted changes.
- Use the provided Python script CompareFolder.py to generate
-
Verify Syntax Highlighting:
- Create or open a
.cfcfile in VS Code. - Ensure that inserted lines are highlighted with
markup.inserted.cfcand deleted lines withmarkup.deleted.cfc.
- Create or open a
To modify or extend this extension:
- Open the project in Visual Studio Code.
- Make changes to the cfc.tmLanguage.json or language-configuration.json files as needed.
- Reload the extension (
Ctrl+RorCmd+Ron Mac) to apply changes.
- The extension currently supports only
.cfcfiles for highlighting changes. - Large files may take longer to process and display.
This project is licensed under the MIT License.