T. C. Mits
1999-07-30 02:22:57 UTC
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().
(ftp://ftp.slickedit.com/pub/usermacs/python.zip).
It does code coloring, but no procedure outlining (at least not
working).
Daniel Dittmar
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().
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 areaand where they are?
(ftp://ftp.slickedit.com/pub/usermacs/python.zip).
It does code coloring, but no procedure outlining (at least not
working).
Daniel Dittmar