Is BBLMRunColors only a coded language module feature.

2021-08-23 Thread Christopher Waterman
Hello,

I’m curious about BBLMRunColors.

I imagine it would be implemented something like this:

BBLMRunColors

com.run.kind.name
 

But this crashes BBEdit.

This is pulled from this technote: 
https://www.barebones.com/support/technotes/language-module-changes.html 


> The BBLMKeywords key is an array of dictionaries. In each dictionary, there 
> is a RunKindkey that specifies the run kind to be used (one of the 
> factory-supplied run kinds, or one defined in your language module's 
> BBLMRunColors array),...

...
> The run kinds you can use are not limited to the built-in ones; you can 
> define your own run kinds and color mappings using a BBLMRunColors key, as 
> previously described. You must also add a BBLMRunNames key which maps those 
> run kinds to human-readable names, so that users can adjust the color 
> settings.


This isn’t explicit as to whether this BBLMRunColors is a “coded” only language 
module feature or if it works with the codeless variety.

The only example I could find was in the built in Python module, where it was 
mapping built in run kinds to custom ones.

- Does it work with codeless language modules?

- If it does, does anyone have an example?

Thanks
—C. Waterman



-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/99DDE2D0-CB7D-4581-8D71-69EC14F2E556%40rustydogink.com.


Re: How to format this text so it expands and fits page width?

2021-08-23 Thread Christopher Stone
> On Aug 22, 2021, at 22:58, David J  wrote:

> Since the end goal was to get the text so I could hard wrap it by removing 
> all line breaks first. Is there any easy way to add an additional hard wrap 
> on all open documents to the above script?

Hey David,

Sure.


# Auth: Christopher Stone
# dCre: 2021/08/22 16:43
# dMod: 2021/08/23 12:27
# Appl: BBEdit
# Task: Remove Line Breaks from Text Documents of Project Window 1.
# : Then Hard Wrap to the Given Length.
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @BBEdit, @Remove, @Line, @Breaks, @Project, 
@Window

property hardWrapWidth : 70


tell application "BBEdit"

set docList to text documents of project window 1

repeat with theDoc in docList
tell theDoc's text
remove line breaks
hard wrap width hardWrapWidth
end tell
end repeat

end tell




--
Best Regards,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/E8AE427B-9FB4-4435-AC26-9545098D985A%40gmail.com.


Re: How to add multiple Function Pattern?

2021-08-23 Thread Darren Duncan

On 2021-08-21 12:08 p.m., Daniel Paz wrote:
I have two Function Pattern that I made for Codeless Language Module, but I'm 
not sure how to combine between them


Why don't you share your 2 alternatives and then you can get specific feedback 
on combining them.  Also by "combine" I assume you want the pattern to build a 
list including examples that match either of them. -- Darren Duncan


--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: 
--- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/da43f7a2-f3f8-656c-c135-d179740e7a46%40darrenduncan.net.