/clif_clm

CLIF Codeless Language Module

Common Logic Interchange Format Codeless Language Module

This repository contains instructions on how to enable CLIF syntax coloring in BBEdit, TextWrangler and Notepad++.

Installation Instructions (BBEdit, TextWrangler)

  1. Clone the GitHub repository CLIF_CLM <https://github.com/carmenchui/clif_clm>_ or download the .zip file
  2. Backup and remove all other LDML Language Modules from ~/Library/Application Support/BBEdit/Language Modules. This avoids possible conflicts.
  3. Move the file clif_clm/Language Modules/LassoScript.plist to ~/Library/Application Support/BBEdit/Language Modules.
  4. Move the folder clif_clm/Scripts/06)Set Language to/ and its contents to ~/Library/Application Support/BBEdit/Scripts/.
  5. Restart BBEdit. This will load the new .plist and AppleScripts. Next you configure BBEdit to use these items.
  6. In BBEdit, select BBEdit > Preferences > Languages > Suffix Mappings. Map the file suffixes that you want to have CLIF syntax highlighting to the appropriate language module. You might need to Add... or Change... file suffixes. I recommend mapping .clif. For each suffix, set the name of the suffix, set the language to CLIF, and select the radio button for Source File.
  7. Under the Scripts menu (the funny scroll icon shaped like an S), select Set Language to > CLIF.
  8. You can set keyboard shortcuts for these scripts to easily switch language modes. Select Window > Palettes > Scripts. Expand Set Language to. Select HTML. Click Set Key.... I use ^H (CTRL-H) for HTML, and ^C for CLIF.
  9. Create a new file, name it test.clif, set the language to CLIF, and syntax coloring should work.

Installation Instructions (Notepad++)

TBA.

Download

You can download the plist file here.

Screenshots

test

test

License

Copyright (c) 2015-2016 Carmen Chui, University of Toronto

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.