Re: [Jprogramming] Syntax Highlighting: Special Combinations

2023-07-30 Thread Raul Miller
In the wiki, we have aka GeSHI. https://www.mediawiki.org/wiki/Extension:SyntaxHighlight https://github.com/GeSHi/geshi-1.0/blob/master/src/geshi/j.php In jqt, we're using QSyntaxHighlighter https://doc.qt.io/qt-5/qsyntaxhighlighter.html https://github.com/jsoftware/qtide/blob/master/lib/high/hi

Re: [Jprogramming] Syntax Highlighting: Special Combinations

2023-07-30 Thread Ak O
In the editor initially. My question about the wiki was if there was already an informational reference that might have had a term I was not thinking of. Working within a wiki page seems like it might be new question altogether. AO. On Sun., Jul. 30, 2023, 16:02 'Viktor Grigorov' via Programmin

Re: [Jprogramming] Syntax Highlighting: Special Combinations

2023-07-30 Thread Ak O
What system currently governs Syntax Highlighting in the editor? By example: If you start typing a number you get a certain colour. If you type a letter you get another colour. Also, how are Special Combinations currently triggered by the parser? AO. On Sun., Jul. 30, 2023, 11:51 Raul

Re: [Jprogramming] Syntax Highlighting: Special Combinations

2023-07-30 Thread Ian Clark
Bravo! Best use of decorated code I've heard for a long while. Shouldn't be hard to implement in jios. The tricky part is keeping it up-to-date, as Henry warns. It would be good if all J platforms follow the same convention. I'd be happy for jios to follow jQt. How about italics? Both jQt and ji

Re: [Jprogramming] Syntax Highlighting: Special Combinations

2023-07-30 Thread Elijah Stone
Detecting what's a fork and a hook requires information about name classes, which jqt may have, but which kakoune likely won't. The problem exists in principal but less so in practice for special combinations. On Mon, 31 Jul 2023, 'Viktor Grigorov' via Programming wrote: My twopence: Worth c

Re: [Jprogramming] Syntax Highlighting: Special Combinations

2023-07-30 Thread Henry Rich
I think the fork/hook idea is excellent, especially as an option. Is there a way in Jqt to find the match for () ? Henry Rich On 7/30/2023 6:02 PM, 'Viktor Grigorov' via Programming wrote: My twopence: Worth confirming: did you mean syntax highlighting on wiki pages or for the various text ed

Re: [Jprogramming] Syntax Highlighting: Special Combinations

2023-07-30 Thread 'Viktor Grigorov' via Programming
My twopence: Worth confirming: did you mean syntax highlighting on wiki pages or for the various text editors? Can't speak for jQt IDE.The answer for both is 'yes', certainly for the simpler ones. Easier for the former, I reckon. Consider also: should special combinations receive one color, that

Re: [Jprogramming] [jsoftware/jsource] Define value for `_3&o.` (arctan) when argument is a complex number with infinity components (Issue #180)

2023-07-30 Thread Henry Rich
I have just checked and JE already does treat _0. as negative zero:    % _0. __ It is hard to keep -0 through a calculation.  Whenever you add it to a nonnegative number it acts like 0.  If all you do is multiply and divide you can keep the negative zero, with the exception that +-0 % +-0 give

Re: [Jprogramming] Syntax Highlighting: Special Combinations

2023-07-30 Thread Hauke Rehr
just a short follow-up As I know its maintainer in person, I had to try GeSHi as well. Not overwhelming, but working fine ootb. Am 30.07.23 um 19:42 schrieb Hauke Rehr: my 2 cents I’m quite satisfied with the highlight I get when writing J in Vim; and with the highlight I get when typesetting

Re: [Jprogramming] Syntax Highlighting: Special Combinations

2023-07-30 Thread Raul Miller
I see two possible ways to implement this sort of functionality. (A) Create a duplicate copy of J's parser, which would run in the highlighting environment, to identify regions corresponding to "special code", or (B) Update J itself to provide a "dry run" mechanism to identify these regions in a

Re: [Jprogramming] Syntax Highlighting: Special Combinations

2023-07-30 Thread Hauke Rehr
my 2 cents I’m quite satisfied with the highlight I get when writing J in Vim; and with the highlight I get when typesetting J in TeX with minted. Neither do custom handling of Special Combinations, though. IIRC, Michal rolled his own for his jprez stuff (editor part). @Michal: Did you consider

Re: [Jprogramming] Syntax Highlighting: Special Combinations

2023-07-30 Thread Henry Rich
What a great idea!  I know nothing about Syntax Highlighting but I would love to see it in the display. There will be a problem keeping the highlighting up to date with the evolving support for special combinations. Henry Rich On 7/30/2023 12:59 PM, Ak O wrote: Hi all, I hope you are all we

[Jprogramming] Syntax Highlighting: Special Combinations

2023-07-30 Thread Ak O
Hi all, I hope you are all well. Two questions. 1. Is there a way to include Special Combinations in Syntax Highlighting? Meaning some visual indicator that an arrangement of Operators triggers a Special Combination. 2. What page should I be looking up to understand the significance of Syntax H