Sublime Forum

First Macro Creation

#1

Good morning all,

I am new to Sublime Text, and so far I am loving it. I am trying to create a macro that can help make things a little quicker for me when a colleague sends me a text file, and I need to put it online at work. This is what I am trying to do:

  1. Select all of the text
  2. Run the command ‘html_entitize’
  3. Perform a Find and Replace All using the below Regex
Find: ^\<(.*)$
Replace: <p>\1</p>

I was able to do numbers 1 and 2 with the record macro commands, so I guess I am really just trying to figure out how to do number 3. Any suggestions?


	{
		"args": null,
		"command": "select_all"
	},
	{
		"args": null,
		"command": "html_entitize"
	}
]
0 Likes