Code Folding and Custom Predefined Fields

23 views
Skip to first unread message

Raymond Lancashire

unread,
Jan 18, 2022, 7:55:27 AM1/18/22
to BBEdit Talk
Greetings BBEdit members

I’ve been able to set up code folding for one set of open and close statement blocks based on <Form Name, see below.

<key>Open Statement Blocks</key>
<string>&lt;Form name</string>

<key>Close Statement Blocks</key>
<string>&lt;/Form&gt;</string>

I could just fold every instance of a code block but is there a way of selecting multiple instances i.e just <Form name and <Group>?

<key>Open Statement Blocks</key>
<string>&lt;Form name</string>
<string>&lt;Group&gt;</string>

<key>Close Statement Blocks</key>
<string>&lt;/Form&gt;</string>
<string>&lt;/Group&gt;</string>


On a different topic:

I have a instance where one <Key> element is in a predefined list, for instance ABCD:
<Key>ABCD</Key>

But then I get a custom occurrence that won’t be in the predefined or keyword list:
<Key>EFGH</Key>

So, what I want to do is to colour the text between the start <Key> and end </Key> regardless of whether it is in a predefined list or not?

Kind regards
Ray
Reply all
Reply to author
Forward
0 new messages