On 3/2/07 2:19 AM, "Roland Küffner" <[EMAIL PROTECTED]> wrote:

> tell application "BBEdit"
> activate
> tell text window 1
> set firstLineIndex to startLine of selection
> set lineLength to length of line firstLineIndex
> if lineLength is 0 then
> select insertion point before line firstLineIndex
> else
> select characters 1 through lineLength of line firstLineIndex
> end if
> end tell
> add prefix and suffix selection of text window 1 prefix "/* " suffix
> " */"
> end tell

And changing "add" to "remove" will uncomment a line.
-- 

Allen Watson  . Writer/Webmaster  [ p.  503 .281 .0250   m.  503 .916 .9411
e.  [EMAIL PROTECTED]
homepage.mac.com/allen_a_watson/



--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to