5

I remember back in my CodeWarrior days, it was possible to add entries to the code navigational menu using #pragma mark directives, which made it easy to organize your code file into sections visible in the menu.

Is there any such way to do this in BBEdit, specifically in JavaScript files?

enter image description here

devios1
  • 725

2 Answers2

3

BBEdit supports #pragma mark for non-C languages, actually.

See the entry on the bbedit-hints blog on this topic.

Also: some other prefixes work (TODO, for example).

0

Well it's not an ideal solution, but I did find a way to add bookmarks to a file by parsing it with a regular expression. You can then start lines with a certain character sequence that you want to represent a mark.

enter image description here

(Here I'm using a triple-slash to identify a bookmark.)

The problem is you have to run this manually each time you want to build the menu--it doesn't update automatically.

It also doesn't support "-" divider lines like CodeWarrior used to. Bummer.

devios1
  • 725