Move Cursor to Next or Previous Paragraph

CodeWright® - API Macro - Royalty Free - 2005.01.01 17:15
Send Comments


Move Cursor to Next or Previous Paragraph.


This function moves the cursor to the first character of either the preceding or next paragraph.

Our enterprise standard for ASP and HTML is to separate paragraphs with a single blank line. This results in code that looks something like ...

<p>This function moves the cursor to the first character of a line of a block of information.

<p>This function also invites further exploration to determine its full potential.

tlaMoveParagraph allows us to skip down or up moving the cursor to the first character in each paragraph (regardless of where the paragraph starts on the line).


Move cursor down to first character of next paragraph.

tlaMoveParagraph( "D" );

Move cursor up to first character of previous paragraph.

tlaMoveParagraph( "U" );

Input Parameters

Parm Name Code Meaning
1 Direction "D" Move cursor down.
"U" Move cursor up.

Return Codes

Code Message/Meaning
-1 tlaMoveParagraph: direction not "D" or "U".
0 No match found.
1 Match found.


This function requires tlaError and tlaSkip.


Current version verified under:

  • Visual SlickEdit 8.0.1


Perform the following steps:

  • Select the Code button on this page.
  • When the second window opens, select all the text in the text box.
  • Issue Ctl-C (copy).
  • Create a file in Visual SlickEdit with type Slick-C and extension ".e".
  • Issue Ctl-V (paste).
  • Issue Ctl-S (save).
  • Select PFK-12 to compile the macros.


tlaSlick is a Visual Slick-C module that contains all of the Slick-C macros on this website in a single easy to install package. The tlaSlick module can be purchased by selecting the Buy button on this page.

tlaMoveParagraph is included as a function in tlaSlick.

Copyright © 1993-2005 Thom Little Associates, Ltd. revised 2005.01.01 17:15
One Central Square, Keene, NH 03431-3787 phone 603-357-7567