|
Forum Index : Microcontroller and PC projects : CMM2: BBEdit Language Module
| Author | Message | ||||
| djwildstar Newbie Joined: 29/07/2020 Location: United StatesPosts: 24 |
I don't know how many (if any) CMM2 folks are Mac users, but here is a BBEdit codeless language module for MMBasic 5.05.05. I've implemented basic syntax coloring (comments, strings, keywords, and predefined symbols), code completion, subroutine and function detection (so that BBEdit builds a list of functions, and can fold function bodies), along with support for commenting-out lines and blocks of code. I've bound the definition to .BAS and .INC files. To install, open BBEdit Preferences, click on Languages and then the "Language Modules" link. This will open the BBEdit application support folder in a Finder window. Drag the CMM2 BASIC.plist file into the Language Modules folder, then quit and re-start BBEdit. Let me know if you see any oddities or bugs. One known oddity is that if a symbol is both a keyword and a function, I had to decide if it went on the pre-defined symbol list or the keyword list - it can't be in both places. In some cases, this decision was somewhat arbitrary. Also, I omitted some commonly-used parameters (such as ON, OFF, ENABLE, DISABLE, I, B, etc.) to avoid confusion. CMM2 BASIC.plist.zip |
||||
| jean-yves Newbie Joined: 03/09/2020 Location: United KingdomPosts: 7 |
Nice work. If you send the download link to BareBones they will add it to their list: http://www.barebones.com/support/bbedit/plugin_library.html I've sent them a couple myself. |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |