I’m trying to create a macro that does the following (this is helpful in dumping large quantities of text into basic HTML when setting up a new web page):
- Select all
- Turn word wrap off
- Split into lines
- Insert
at the beginning of each line, and
at the end of each line
Here’s what I’ve got. The key challenge seems to be I can’t figure out how to set the macro to turn word wrap off before continuing with splitting into lines:
[
{
"args": null,
"command": "select_all"
},
{
"args": null,
"command": "split_selection_into_lines"
},
{
"args":
{
"extend": false,
"to": "bol"
},
"command": "move_to"
},
{
"args":
{
"characters": "<p>"
},
"command": "insert"
},
{
"args":
{
"extend": false,
"to": "eol"
},
"command": "move_to"
},
{
"args":
{
"characters": "</p>"
},
"command": "insert"
},
]
Any help appreciated! Thank you.