Hi Simon,

It's not wishful thinking, but the functionality is pretty well hidden.

The first step is to go to the Edit | Configure | Qt IDE menu and set  
TermSyntaxHighlight=true  This allows the terminal window to make use of the 
syntax colouring file the same way that the edit windows do.

The second step if you want further adjustments is to go to the Edit | 
Configure | Styles menu and adjust the display to your preference. 

Cheers, bob

> On Jul 31, 2023, at 05:38, 'Simon Barker' via Programming 
> <programm...@jsoftware.com> wrote:
> 
> Ah, thank you. I thought I recalled seeing syntax colouring in the terminal 
> window in an older version but it might well have been wishful thinking.
> 
> S
> 
> -----Original Message-----
> From: Programming <programming-boun...@forums.jsoftware.com> On Behalf Of 
> Raul Miller
> Sent: Monday, July 31, 2023 1:35 PM
> To: programm...@jsoftware.com
> Subject: Re: [Jprogramming] Syntax Highlighting: Special Combinations
> 
> In jqt, I only see syntax coloring when editing scripts.
> 
> FYI,
> 
> --
> Raul
> 
> On Mon, Jul 31, 2023 at 6:26 AM 'Simon Barker' via Programming 
> <programm...@jsoftware.com> wrote:
>> 
>> In my recently installed current set up:
>> 
>>   JVERSION
>> Engine: j9.4.2/j64avx2/windows
>> Build: commercial/2023-04-10T01:19:53/clang-15-0-7/SLEEF=1
>> Library: 9.4.22
>> Qt IDE: 2.4.1/6.2.4(6.2.4)
>> Platform: Win 64
>> Installer: j9.4 install
>> InstallPath: c:/program files/j9.4
>> Contact: www.jsoftware.com
>> 
>> I don't seem to get any syntax colouring other than basic text 
>> fore/background colours and selection highlighting.
>> 
>> I've tried a re-install without any change in outcome.
>> 
>> Any other suggestions to try to fix this?
>> 
>> Thank you,
>> 
>> Simon
>> 
>> -----Original Message-----
>> From: Programming <programming-boun...@forums.jsoftware.com> On Behalf 
>> Of Jan-Pieter Jacobs
>> Sent: Monday, July 31, 2023 9:19 AM
>> To: programm...@jsoftware.com
>> Subject: Re: [Jprogramming] Syntax Highlighting: Special Combinations
>> 
>> In addition to the higlighting of correctly used special combinations, I 
>> think it would also be useful to highlight, or issue warnings for (as done 
>> for 9!:55) for near-misses, i.e. caused by phrases that could use a special 
>> combination, but miss it due to wrong or missing parentheses etc.
>> 
>> My uneducated hunch is that datatypes on which the special combinations are 
>> executed are also important, but would only be available at execution time.
>> 
>> Another type of phrases that might be nice to highlight is things like 
>> possibilities for speeding up by dropping tolerant comparison: While working 
>> on AoC, I recently had a case where using i.!.0 instead of i. for lookup of 
>> rows in a matrix sped up the program by more than 20x !
>> 
>> My two cents.
>> 
>> Jan-Pieter
>> 
>> On Mon, 31 Jul 2023, 05:27 Raul Miller, <rauldmil...@gmail.com> wrote:
>> 
>>> In the wiki, we have <syntaxhighlight lang="J"> </syntaxhighlight> 
>>> 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/highj.cpp#L1
>>> 5
>>> 
>>> I think jhs uses CodeMirror.
>>> https://codemirror.net/5/doc/manual.html#modeapi
>>> https://github.com/jsoftware/ide_jhs/blob/master/js/codemirror/j/j.4
>>> .2
>>> .js
>>> 
>>> I hope this helps,
>>> 
>>> --
>>> Raul
>>> 
>>> On Sun, Jul 30, 2023 at 10:23 PM Ak O <akin...@gmail.com> wrote:
>>>> 
>>>> 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 Programming, < 
>>>> programm...@jsoftware.com> wrote:
>>>> 
>>>>> 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 of
>>> what
>>>>> they resolve to; or should they additionally be italicized,
>>> emboldened, or
>>>>> underlined?
>>>>> 
>>>>> For my syntax highlighting code for kakoune, I'd considered 
>>>>> indicating with straight and wavy underlines whether a verb 
>>>>> train resolves to a
>>> hook
>>>>> or a fork. I'd decided against it to not add clutter.
>>>>> 
>>>>> 
>>>>> Jul 30, 2023, 20:00 by akin...@gmail.com:
>>>>> 
>>>>>> 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 Highlights.
>>>>>> I am not sure what exactly that is called.
>>>>>> 
>>>>>> For example:
>>>>>> Something(...)          NB. Colour change to 'Something'
>>>>>> Vs.
>>>>>> Something   (...)       NB. No Colour changes to 'Something'
>>>>>> 
>>>>>> Which page do I find that type of information?
>>>>>> 
>>>>>> 
>>>>>> Thank you,
>>>>>> 
>>>>>> AO.
>>>>>> 
>>> --------------------------------------------------------------------
>>> --
>>>>>> For information about J forums see
>>> http://www.jsoftware.com/forums.htm
>>>>>> 
>>>>> 
>>>>> ----------------------------------------------------------------
>>>>> --
>>>>> ---- For information about J forums see 
>>>>> http://www.jsoftware.com/forums.htm
>>>>> 
>>>> ------------------------------------------------------------------
>>>> --
>>>> -- For information about J forums see 
>>>> http://www.jsoftware.com/forums.htm
>>> --------------------------------------------------------------------
>>> -- For information about J forums see 
>>> http://www.jsoftware.com/forums.htm
>>> 
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to