79324784

Date: 2025-01-02 19:39:14
Score: 1.5
Natty:
Report link

Disabling Auto complete did not work for me. However, I did find a solution.

#include "slick.sh"

_command format_html() name_info(','VSARG2_MACRO|VSARG2_MARK|VSARG2_REQUIRES_MDI_EDITORCTL) { _macro('R',1);

bool done;
begin

top();up();
done = FALSE;
while ( !done ) {
  begin_line_text_toggle();
  last_event(name2event('<'));html_lt();
  keyin("p");
  last_event(name2event('>'));html_gt();
  last_event(name2event(' '));html_space();
  end_line();
  last_event(name2event(' '));html_space();
  last_event(name2event('<'));html_lt();
  keyin('/');
  keyin("p");
  last_event(name2event('>'));html_gt();
  done = cursor_down();

} }

Evidently top_of_Buffer, and down() has other uses. Also, changed begin_line() to begin_line_text_toggle(). Thanks for the input.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Wayland