I do a lot of work with .html files that contain server-side javascript and
html. I wrote a script that lets me use 'command + L' to toggle the syntax
coloring. I find this very handy. However, since the clipping palette is
language aware and my keyboard short cuts to insert clippings only work if
the appropriate clippings language dropdown is selected, I would like to
have my script not only change the syntax coloring, but to also syc the
clipping palette language as well. e.g. If I have the sytax coloring set to
javascript, even if the file extension is .html, I would like to be able to
assume I can insert a javascript clipping using a keyboard shortcut.


part of my script that handles the toggling of the syntax coloring:

on toggleLanguage(lang)
    if lang is equal to "HTML" then
        set lang to "JavaScript"
    else
        set lang to "HTML"
    end if
    return lang
end toggleLanguage

-- 
Matthew Galaher
Yesmail - Manager of Web Production
(503) 419-0559 Phone
[EMAIL PROTECTED] Email

309 SW Sixth Avenue, Suite 900
Portland, OR 97204 


-- 
------------------------------------------------------------------------
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_script.shtml>
List archives: <http://www.listsearch.com/bbeditscripting.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to