I had posted to this list an inquiry about ways in which my "ascii comment 
generator" at
http://whs3rd.burlyhouse.net/cmn/commentx.t
could be adapted for inline operation within BBEDIT.  After studying BBEDIT 
manual, I
decided that the "Text Filter" capability would serve this need.  I recast my 
generator
in C and placed the calling unix shell script into BBEDIT's text filter folder.

Now I can type free-form lines like the first three below:

assembleComment
This function combines the content of graphic, bnr, and com into a single ascii 
comment
and prints it back to BBEDIT.
void assembleComment()
int i;
.
.
.

select those 3 lines, pass them to my "litebulb" text filter and get back(best 
viewed in mono-spaced font):

//      _...._                                    _                             
//    .'      '.                                 |                              
//   /          \   _.  _  _  _  .___  |_  |  _  |   _  .___  .___   _  ._  _|_ 
//   |   jgs    |  (_| _> _> (/_ | | | |_) | (/_ |_ (_) | | | | | | (/_ | |  |_ 
//    \   ~~   /                                                                
//     \  ||  /    This function combines the content of graphic, bnr, and com 
//      \ || /     into a single ascii comment and prints it back to BBEDIT. 
//      {__==}     
//      {__==}     
//       \__/      

void assembleComment()
int i;
.
.
.

If anyone's interested in the methods I've used here, I can provide full 
particulars.  (Now to write a 
text filter that can actually generate code.)

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to