Search found 21 matches

by phi
25.01.2026 22:10
Forum: Lexers
Topic: lexer.AutoHotkeyPhi
Replies: 6
Views: 81

Re: lexer.AutoHotkeyPhi

I agree... That was a "minor wish"... The way AutoHotkey.lcfx => AutoHotkey_LC1_AHKV1.lcf needs only a C preprocessor. There is perhaps somewhere a C retropreprocessor that puts the modified lines (provided the changes are incremental) of AutoHotkey_LC1_AHKV1.lcf back into AutoHotkey.lcfx.
by phi
25.01.2026 19:40
Forum: Lexers
Topic: lexer.AutoHotkeyPhi
Replies: 6
Views: 81

Re: lexer.AutoHotkeyPhi

Yes that would need some work with SynWrite; the simplest way, not so simple, might be to add a dialog for variables and to edit the syntax given this set of variables, the non relevant parts being ignored and left as is. However, Cuda could manage the vars and generate and feed Lazarus streaming co...
by phi
25.01.2026 10:50
Forum: Lexers
Topic: lexer.AutoHotkeyPhi
Replies: 6
Views: 81

Re: lexer.AutoHotkeyPhi

Well, I started with your lexer and added features for many years, quite slowly. There is no specification and no manual as that was done sporadically along the needs and wishes. I had one idea (a minor wish) : implementing some kind of #if with variables, so that you don't have so many lexers for m...
by phi
17.01.2026 13:52
Forum: General - CudaText
Topic: instances
Replies: 3
Views: 71

Re: instances

Well, not so minor: managing the yyy type might induce the recourse to another editor, like NPP... :-) There are already potential issues if different instances change some settings. There is already the -n command line option to force a new instance. A -nyyy could do so unless there is an id=yyy in...
by phi
16.01.2026 14:02
Forum: Issues solved
Topic: dynamic highlighting bugged
Replies: 14
Views: 163

Re: dynamic highlighting bugged

As you ask for it, here's a suggestion: Let's call the function logprint(str) that prints str in the log window. If str1 has a header like in "[header]message1" then if a subsequent call logprint(str2) with str2= "[header]message2" will replace str1 in the log window instead of b...
by phi
15.01.2026 14:42
Forum: Lexers
Topic: lexer.AutoHotkeyPhi
Replies: 6
Views: 81

lexer.AutoHotkeyPhi

Attached is an alternative lexer for AutoHotkey files, more fine-grained. Install: just replace \cudatext\data\lexlib\AutoHotkey.lcf and .cuda-lexmap (after saving them in another dir) with the ones in the zip. Relaunch cuda. It is possible to keep both, then as renamed AutoHotkeyPhi.lcf, but you'll...
by phi
15.01.2026 10:38
Forum: General - CudaText
Topic: instances
Replies: 3
Views: 71

instances

It is possible to lunch many instances of cuda as long as no instance is already running with option "Allow to run only one instance (main window) of CudaText." set to true (which is the case by default). when launching cudatext.exe -id=xxx -s=c:\cuda\cfg_x filex cudatext.exe -id=yyy -s=c:...
by phi
15.01.2026 09:40
Forum: Issues solved
Topic: dynamic highlighting bugged
Replies: 14
Views: 163

Re: dynamic highlighting bugged

Log could, more generally, allow a module to change/update the last line of log rather than writing a new one. I see no reason to set ui_session_save_interval at more than 1s except for the clogged log. Then, this log line is useful not to know when but where the session is saved, when several setti...
by phi
14.01.2026 23:25
Forum: Issues solved
Topic: dynamic highlighting bugged
Replies: 14
Views: 163

Re: dynamic highlighting bugged

I get the same. I didn't notice the error in log, drowned in so many "Saved session: "default.cuda-session", 15 file(s), by timer at..." (every second!). I disabled the option «Show in console lines "Loaded session...", "Saved session..."». It could have separ...
by phi
14.01.2026 18:01
Forum: Issues solved
Topic: dynamic highlighting bugged
Replies: 14
Views: 163

Re: dynamic highlighting bugged

I finally solved the issue: a syntax error in cuda_hilite_occurrences.json, with a missing "," "sel_allow_spaces": true "theme_item_current": "LightBG2", I suppose that *I* did it but I don't remember (if I did, that was years ago). I didn't suspect that becau...