Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 19:59 14 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2: BBEdit Language Module

Author Message
djwildstar
Newbie

Joined: 29/07/2020
Location: United States
Posts: 24
Posted: 05:38pm 02 Sep 2020
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 7
Posted: 05:44pm 05 Sep 2020
Copy link to clipboard 
Print this post

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.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025