Align comment fields in old assembly sources

65 views
Skip to first unread message

Lloyd Ollmann

unread,
Mar 24, 2025, 3:18:04 PM3/24/25
to BBEdit Talk
I wish to process some old, 1985, 68K assembler files to align the comment fields to a given column can anyone make a recommendation on how I might do so using BBEdit?

In this case the comment character is ';'

Steve deRosier

unread,
Mar 24, 2025, 5:03:26 PM3/24/25
to bbe...@googlegroups.com
Honestly, I'd probably pop that into Claude or ChatGPT and have it do it for me.  And I'd most likely use the chat worksheet feature of BBEdit to do it.  Just saying what I'd do, there's other ways to do it.

- Steve


On Mon, Mar 24, 2025 at 12:18 PM Lloyd Ollmann <lloydo...@gmail.com> wrote:
I wish to process some old, 1985, 68K assembler files to align the comment fields to a given column can anyone make a recommendation on how I might do so using BBEdit?

In this case the comment character is ';'

--
This is the BBEdit Talk public discussion group. If you have a feature request or believe that the application isn't working correctly, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: <https://mastodon.social/@bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bbedit/28663248-ca15-4917-87ec-a31f6a88b23an%40googlegroups.com.

GP

unread,
Mar 25, 2025, 2:33:14 PM3/25/25
to BBEdit Talk
Might be overkill for your needs but there is a 68K assembly language Language Server Protocol module (m68k-lsp https://github.com/grahambates/m68k-lsp) that does code formatting amongst other things. If you don't want to go to the trouble of getting it working with BBEdit for merely tidying up comments in 68K assembler files, there's a "Motorola 68000 Assembly" Visual Studio Code extension (https://marketplace.visualstudio.com/items?itemName=gigabates.m68k-lsp) that already has the integration with an LSP supporting code editor type application figured out; albeit the editor is VSC instead of BBEdit.

Lloyd D. Ollmannm Jr,

unread,
Mar 25, 2025, 6:23:25 PM3/25/25
to bbe...@googlegroups.com
In MPW we could use the ® operator to tag/capture a found expression and use the tag in the replacement expression allowing reordering.


> On Mar 24, 2025, at 12:12, Lloyd Ollmann <lloydo...@gmail.com> wrote:
>
> I wish to process some old, 1985, 68K assembler files to align the comment fields to a given column can anyone make a recommendation on how I might do so using BBEdit?
>
> In this case the comment character is ';'
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature request or believe that the application isn't working correctly, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: <https://mastodon.social/@bbedit>
> ---
> You received this message because you are subscribed to a topic in the Google Groups "BBEdit Talk" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/bbedit/jHQyHVlS-Cc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to bbedit+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages