Python and SlickEdit

T. C. Mits 71351.356 at compuserve.com
Thu Jul 29 22:22:57 EDT 1999


Howdy:

    I'm using that aforementioned macro extension with Vslick.   Works well,
except for comments.  Can't get that to work and trying to puzzle out the
internals of the editor takes too much time.

    Since Python doesn't use brackets (which I'm starting to like ) I wrote
a macro to do a jump to end of structure, which is the next dedented line.

Its ugly, there's probably a neater way to do it, but it works so far.  I
need to add a simple way to goto the prev dedent; currently I have a similar
macro for this.  I assigned them to tool bar buttons:

/**
  *
  * Go to the next line where cur column is non-space.
  *
  * This is especially useful for the Python language which uses indentation
  * as a structuring device (which has a certain advantage, "a wysiwyg
style")
  *
  * @author JB
  * @date   7/28/99
  * @version 0.01
  *
  */
_command next_dedent()
{  
   cursor_down();
   ch = get_text(1);

   while ( !pos( '['p_word_chars'\!\@\#\$\%\^\&\*\(\)\_\+\-\=\{\}\[\]\|\:\;\"\<\>\?\,\.\/\~\`]',
      ch,1,'r') || !_dbcsStartOfDBCSCol(p_col) ) {

      if( cursor_down()){
         break;
      }
      ch = get_text(1);

   } // while

}  // next_dedent().


Daniel Dittmar <daniel.dittmar at sap-ag.de> wrote in message news:7njrob$oq6$1 at mailusr.wdf.sap-ag.de...
> Rowland Smith <rowland at iRenaissance.com> wrote:
> 
> >Does anyone know if there are any Python plug-ins for Visual SlickEdit
> >and where they are?
> 
> There's a Python module in the contributed area
> (ftp://ftp.slickedit.com/pub/usermacs/python.zip). 
> 
> It does code coloring, but no procedure outlining (at least not
> working). 
> 
> Daniel Dittmar
> 
> 







More information about the Python-list mailing list