Hi, haven't really used macroing for a lot as I've found it too limited to do something to my taste.
Anyways, I'd like to have a macro that does this:
run the macro and have it like this:
Now, I made a macro that does this, but I don't like it, so I was wondering if someone who has more knowledge of the macroing facilities has a better idea. If possible, I'd like to have it run without having to open a new tab, but as I can't store linenumbers etc, I dunno how to.
Here's the macro anyways (need to have code selected before running it):
The same with the uncomment macro:
Anyways, I'd like to have a macro that does this:
Code: Select all
GLOBAL $HTTP_COOKIE_VARS;
if (isset($HTTP_COOKIE_VAR["PHPSESSID"]))
header("Location: $page");
else
header("Location: $page?" . SID);
Code: Select all
/* GLOBAL $HTTP_COOKIE_VARS; */
/* if (isset($HTTP_COOKIE_VAR["PHPSESSID"])) */
/* header("Location: $page"); */
/* else */
/* header("Location: $page?" . SID); */
Here's the macro anyways (need to have code selected before running it):
Code: Select all
InsertMode
ColumnModeOff
HexOff
UnixReOff
Clipboard 9
Copy
NewFile
Paste
SelectAll
Find RegExp "%*$"
Replace All SelectText "/* */"
Key RIGHT ARROW
Key RIGHT ARROW
Key RIGHT ARROW
ColumnModeOn
StartSelect
Key RIGHT ARROW
EndSelect
Paste
ColumnModeOff
SelectAll
StartSelect
Copy
CloseFile NoSave
Paste
Clipboard 0
Code: Select all
InsertMode
ColumnModeOff
HexOff
UnixReOff
Clipboard 9
Copy
NewFile
Paste
Top
Find RegExp "%/^* ^(*^)^*/$"
Replace All "^1"
TrimTrailingSpaces
SelectAll
Copy
CloseFile NoSave
Paste
Clipboard 0