AsciiDoc syntax highlighting

45 views
Skip to first unread message

Brian Forte

unread,
Feb 23, 2022, 7:36:34 AM2/23/22
to BBEdit Talk
Gentlefolk,

Regarding the $subject above, I’ve installed fblome’s Codeless
Language Module (CLM), <https://github.com/fblome/bbedit-asciidoc>.
And, while absolutely acknowledging I’m looking a gift horse in the
mouth, the syntax highlighting it provides is underwhelming.

Equivalent add-ons are available for other editors.

For *VSCodium* there’s
<https://open-vsx.org/extension/asciidoctor/asciidoctor-vscode>.

For *Atom* there’s
<https://github.com/asciidoctor/atom-language-asciidoc>
(most readily installed as part of
<https://github.com/asciidoctor/atom-asciidoc-assistant>).

And both these add-ons make their respective editors delineate
syntactic elements more completely than the CLM available for BBEdit.
But I absolutely prefer BBEdit as a working environment. The
combination of BBEdit’s many specific niftinesses, and proper macOS
nativeness, is still a serious win.

Also, while the VSCodium extension and the Atom package highlight more
syntatic elements than fblome’s CLM, neither is complete. The most
complete, so far as I can gather, is MacVim’s built-in AsciiDoc syntax
highlighting. And I *really* don’t want to use any flavour of `vim`.

I’ve exhausted my own Google-fu and thought asking real people might
turn up something I’ve missed. Either a better AsciiDoc CLM, or,
perhaps, an AsciiDoc Language Server Protocol (LSP) that I’ve not
managed to turn up.

Many thanks, in advance.

Regards,

Brian Forte.
--
Brian Forte
<bfo...@adelaide.on.net>

Sam Birch

unread,
Feb 23, 2022, 5:43:49 PM2/23/22
to BBEdit Talk
Unfortunately, CLMs are somewhat limited. The sufficiently motivated user might consider implementing a code-based language module instead. Documentation here:

http://www.barebones.com/support/develop/index.html

And unless I’m mistaken, currently BBEdit does not use LSP information for syntax highlighting.

Cheers,
-sam
> --
> This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/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 on the web visit https://groups.google.com/d/msgid/bbedit/20220223153231509444.cb2348be%40adelaide.on.net.

Eric A. Meyer

unread,
Mar 26, 2022, 11:26:25 AM3/26/22
to BBEdit Talk
On 23 Feb 2022, at 17:43, Sam Birch wrote:

> Unfortunately, CLMs are somewhat limited. The sufficiently motivated user might consider implementing a code-based language module instead. Documentation here:
>
> http://www.barebones.com/support/develop/index.html
>
> And unless I’m mistaken, currently BBEdit does not use LSP information for syntax highlighting.

It looks to me like BBEdits does support LSPs, if my digging around "Preferences > Languages > Language-specific settings:" is any indication. Do you mean it supports LSPs, but just doesn't use them for highlighting?

(Asking because I also could REALLY use good AsciiDoc syntax highlighting and even previewing: it's the only reason I ever fire up Atom, and doing that is never not annoying in some way or other.)

--
Eric A. Meyer - http://meyerweb.com/
signature.asc

Rich Siegel

unread,
Mar 26, 2022, 11:32:47 AM3/26/22
to BBEdit Talk
On 26 Mar 2022, at 11:21, Eric A. Meyer wrote:

> It looks to me like BBEdits does support LSPs, if my digging around "Preferences > Languages > Language-specific settings:" is any indication. Do you mean it supports LSPs, but just doesn't use them for highlighting?

Correct.

> (Asking because I also could REALLY use good AsciiDoc syntax highlighting and even previewing

Some day, perhaps. :-)

R.


--
Rich Siegel Bare Bones Software, Inc.
<sie...@barebones.com> <https://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.

Patrick Woolsey

unread,
Mar 26, 2022, 11:33:31 AM3/26/22
to bbe...@googlegroups.com
On Mar 26, 2022, at 11:21, Eric A. Meyer <er...@meyerweb.com> wrote:
>
> It looks to me like BBEdits does support LSPs, if my digging around "Preferences > Languages > Language-specific settings:" is any indication.

That is correct, e.g.

https://www.barebones.com/support/bbedit/lsp-notes.html


> On 23 Feb 2022, at 17:43, Sam Birch wrote:

>> And unless I’m mistaken, currently BBEdit does not use LSP information for syntax highlighting.
>
> [...] Do you mean it supports LSPs, but just doesn't use them for highlighting?

and this is also correct. :-)


Regards,

Patrick Woolsey
==
Bare Bones Software, Inc. <https://www.barebones.com/>

Eric A. Meyer

unread,
Mar 26, 2022, 11:39:47 AM3/26/22
to BBEdit Talk
On 26 Mar 2022, at 11:32, Rich Siegel wrote:

> On 26 Mar 2022, at 11:21, Eric A. Meyer wrote:
>
>> (Asking because I also could REALLY use good AsciiDoc syntax highlighting and even previewing
>
> Some day, perhaps. :-)

I don't suppose there's a really good CLM for Markdown? I feel like someone could make halfway decent progress on AsciiDoc syntax highlighting if they had a Markdown CLM to start from, given the similarities between the two.
signature.asc
Reply all
Reply to author
Forward
0 new messages