Hier ist ein etwas grobes Applescript, um zu tun, was Sie wollen
tell application "BBEdit" find ">" searching in text 1 of text document 1 options with selecting match select insertion point after selection set insertionP to selection set text of insertionP to "<!-- <##> -->" & (text of insertionP) select insertion point before selection end tell
Am Ende wird der Cursor am Ende des Tags positioniert. Drücken Sie die Tabulatortaste, um zur Mitte Ihrer Kommentare zu springen (die <##>
), oder Sie könnten es natürlich ignorieren und den Kommentar löschen :)