[thelist] Homesite help

Sam sam at sam-i-am.com
Tue Jul 8 09:47:23 CDT 2003


you can map snippets to keyboard shortcuts in Homesite 4+.
I have snippets set up for
   /* */ (CTRL ALT 8)
   "" 	(CTRL ALT ')
   {}	(CTRL ALT ])

etc. I also have a little pair of activescripts I wrote that do/undo 
single-line comments for javascript and perl, vb(script) at: 
http://www.sam-i-am.com/work/homesite/hs_commentCode.html

They both operate on a selection and do a pretty good job of preserving 
formatting so you can round-trip (comment/uncomment) without having to 
re-indent. Theyll also keep existing comments so you can rapidly comment 
and uncomment whole blocks. I also tend to map this to a keyboard 
shortcut. It does some simple guesswork to pick the correct comment 
character - // for html, .java .js files, # for .pl, .pm and anything 
with a #! shebang. I've not tackled block/multiline comments, but 
otherwise it wouldn't be hard to extend to work with other languages. At 
one point i had ' for .asp.. not sure if that's still in there.

(apparently some of my scripts don't work in HS5.. which I don't have)
hth
sam


Tom Dell'Aringa wrote:
> --- Paul Bennett <paul at teltest.com> wrote:
> 
>>I am trialling Homesite, which may finally replace PHPEdit for me. 
>>PHPEdit had a nice function that allowed you to select a block of
>>text and dump comments / quotes around it. Can anyone help me find 
>>such a feature on Homesite 5?
> 



More information about the thelist mailing list