GRAMdocslanguages

Diff

Diff support is available natively in Gram.

  • Tree-sitter: zed-industries/the-mikedavis/tree-sitter-diff

Configuration

Gram will not attempt to format diff files and has remove_trailing_whitespace_on_save and ensure-final-newline-on-save set to false.

Gram will automatically recognize files with patch and diff extensions as Diff files. To recognize other extensions, add them to file_types in your Gram settings.jsonc:

  "file_types": {
    "Diff": ["dif"]
  },

Site built with Blogatto in Gleam. See the website source and license.