├── README.markdown └── diff.plist /README.markdown: -------------------------------------------------------------------------------- 1 | Introduction To This Project 2 | ============================= 3 | 4 | This is a BBEdit Codeless Language Module that provides good highlighting for viewing diffs (files with a .diff extension) in BBEdit. 5 | 6 | NOTE: This module supports two styles of diffs. The first is what I call CVS style diffs, AKA diffs of the style: 7 | 8 | `< Change that is moving OUT of the file` 9 | `> Change that is moving INTO the file` 10 | 11 | The world of source control has moved to unified diffs, which this language module now supports. Unified diffs are diffs of the style: 12 | 13 | `- Change that is moving out of the file` 14 | `+ Change that is moving INTO the file` 15 | 16 | This module tries hard to keep good visual appearance, maybe at the sake of semantics. For example, a removed line is tagged as a comment line in BBEdit, because in my/the standard color scheme, that means said line gets a gray-ish color. 17 | 18 | 19 | Installation 20 | ============================= 21 | 22 | Copy diff.plist into ~/Library/Application Support/BBEdit/Language Modules/). If no such folder exists, you may create one. After installing a new language module, you will need to quit and relaunch BBEdit in 23 | order to use it. 24 | 25 | Areas For Improvement 26 | =========================== 27 | 28 | * Using new features of codeless language modules since 2005 (aka: BBEdit 7 or in whatever version codeless language modules came out in -------------------------------------------------------------------------------- /diff.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 22 | 23 | 24 | 25 | BBEditDocumentType 26 | CodelessLanguageModule 27 | BBLMColorsSyntax 28 | 29 | BBLMIsCaseSensitive 30 | 31 | BBLMKeywordList 32 | 33 | diff 34 | @@ 35 | 36 | BBLMLanguageCode 37 | DifF 38 | BBLMLanguageDisplayName 39 | Diff File 40 | BBLMScansFunctions 41 | 42 | BBLMSuffixMap 43 | 44 | 45 | BBLMLanguageSuffix 46 | .diff 47 | 48 | 49 | BBLMLanguageSuffix 50 | .patch 51 | 52 | 53 | Language Features 54 | 55 | Close Block Comments 56 | 57 | Close Parameter Lists 58 | 59 | Close Statement Blocks 60 | 61 | Close Strings 1 62 | 63 | Close Strings 2 64 | 65 | End-of-line Ends Strings 1 66 | 67 | End-of-line Ends Strings 2 68 | 69 | Escape Char in Strings 1 70 | 71 | Escape Char in Strings 2 72 | 73 | Identifier and Keyword Characters 74 | 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz@ 75 | Open Block Comments 76 | 77 | Comment Pattern 78 | ^[<-].* 79 | Open Parameter Lists 80 | 81 | Open Statement Blocks 82 | 83 | String Pattern 84 | ^[>+].* 85 | Function Pattern 86 | 89 | (?P 90 | (?P 91 | diff[^?%*|\"<>\r\n]* 92 | ) 93 | ) 94 | ) 95 | )]]> 96 | Terminator for Prototypes 1 97 | 98 | Terminator for Prototypes 2 99 | 100 | 101 | 102 | 103 | --------------------------------------------------------------------------------