.jsf (JOE editor) syntax highlighting for todo.txt
1
vote
0
answers
19
views
I can't get the JOE editor to highlight tags like `
due:YYYY-MM-TT
for due dates or
rec:NP
` for recurrences to work; I was able to highlight prioritized tasks though.
* A sample todo.txt
looks like this:
update the ad with Sara
(B) ask Richard about stuff
send questions to Mr K next week
(B) ask T about integration for A
(A) test 1110 due:2024-12-09 rec:1d
test 1120 due:2024-12-09 rec:1w and tell S
* I'm trying to highlight the prioritized tasks and the tags with this todotxt.jsf
:
# Todo.txt syntax highlighting for JOE
=Idle
=Prio CYAN bold
=Due bg_MAGENTA
=Rec bg_YELLOW
:lineStart Idle
* idle buffer
"(" prio noeat buffer
:idle Idle
* idle buffer
" :" tagwordsIdle hold
"\n" lineStart
:prio Prio
* prio buffer
" :" tagwordsPrio hold
"\n" lineStart
:tagwordsIdle Idle
* idle
"\n" lineStart strings
"due" dueIdle recolor=-2
#"rec" recIdle
done
:tagwordsPrio Prio
* prio
"\n" lineStart strings
"due" duePrio recolor=-2
#"rec" recPrio
done
:dueIdle Due
* dueIdle
" \t" idle
:duePrio Due
* duePrio
" \t" prio
How would I highlight individual tags/words within a line?
Asked by montionoimi
(11 rep)
Dec 9, 2024, 03:11 PM
Last activity: Dec 10, 2024, 11:09 AM
Last activity: Dec 10, 2024, 11:09 AM