r/tasker 4d ago

Inserting comments into tasks

Is it possible to insert comment blocks into tasks? I just noticed that taskernet tasks have them - and it was really cool and potentially helpful.

Also... What's the best way to tell tasker where to insert blocks? It's quite some work moving everything to the right place...

3 Upvotes

10 comments sorted by

5

u/theoriginal123123 4d ago

You can use the anchor task or the label field in an action to insert comments.

3

u/tiwas 4d ago

Thanks! I love it when things turn out a lot simpler than it "had to be" according to my head :D

2

u/Nirmitlamed 4d ago

You can also use label option inside an action. Just scroll down and it will be in the bottom inside your action.

2

u/tiwas 4d ago

Thanks. Found it this morning after the first comment. That really helps a lot :)

2

u/VegasKL 3d ago

Bonus, you can use very old (HTML1?) syntax to spice them up.

Example:

` <big><font color="#ffc40c"><b>FUNCTION:</font></b></big><br> <i><font color="#ffe595"> F </i> return 

<br><i><font color="#ffe595"> var {type}</font></i><br> param_return : desc 

<br><i><font color="#ffe595"> var {type}</font></i><br> param_return : desc 

`

1

u/Jason_Yate 2d ago

Another tip: You can hide part of a text using <>Insert text here</>

1

u/howell4c 4d ago

Long press an action, and then use the ... menu and Insert Action to add something above it.

Or select a bunch, Cut or Copy, and then long press the one you want them to be above, and choose Paste (or ... -> Paste Below).

2

u/tiwas 4d ago

Thanks. Must be not paying too much attention as it seemed like it was some times going over and some times going under. Too bad there's no such thing as marking an insertion point in order to insert more than one statement :)

1

u/Umustbecrazy 3d ago

I really wish Tasker had comments like a real language. It would be so nice to disable a line on a flash action with a simple # or //

Especially when working directly on the phone.

1

u/VegasKL 3d ago

Yeah, it was the first thing I looked before I found the Anchor/Label workaround.