cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax highlighting

SOLVED
Occasional Contributor

Syntax highlighting

Hi

 

I'm just wondering if there is a setting to enable language specific highlighting. I can see TestComplete hihglights some keywords. But I was hoping in my case to enable some Python syntax highlighting too?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Leader

Re: Syntax highlighting

Hi,


Most of editors doing this but TC IDE no.


There is no solution for this for now.


I asked the same questions few months ago.

 

https://community.smartbear.com/t5/TestComplete-Feature-Requests/TestComplete-intellisense-why-it-wo...

View solution in original post

7 REPLIES 7
Community Hero

Re: Syntax highlighting

Yes. Under Tools -> Options -> Panels -> Code Editor there is a highlighting option that allows you to customize the syntax highlighting for different code languages.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Occasional Contributor

Re: Syntax highlighting

Hi @tristaanogre 

 

Thanks for this. What I'm looking for is more so specific keyword highlighting. Take example this snippet in TestComplete

 

tc1.PNG

 

I'm used to PyCharm, so it would be nice to see the distinction between keywords, like decorators with @classmethod, self, return, None etc

 

This is what I see in PyCharm for instance.

 

tc2.PNG

 

Maybe I didn't enable the right option?

Occasional Contributor

Re: Syntax highlighting

 Oh, ok I 've figured it out - thanks

 

One think I couldn't seem to find was highlighting for just arguments?

 

 

Community Leader

Re: Syntax highlighting

Hi,

 

In my opinion thres no option to highlight only specific words like arguments in TestComplete IDE.

Occasional Contributor

Re: Syntax highlighting

Hi @Wamboo 

 

ok, most editors, at least, Atom, PyCharm and VSCode will highlight the function arguments and when those arguments are self and cls, they'll also highlight their use in the body of the function too as they're special to Python.

 

Another thing I wondered is say I have function that returns a path to an element. I then won't get autocomplete when I try to reference that variable the path was assigned to. For instance:

 

    def get_patient_banner(self):
        return Aliases.NavX.NavXHost.patient_name_banner.patient_name

If I type "." after patient_name it will give me options.

 

if I do

 

    def is_correct_patient_shown(self, name):
        patient_banner = self.get_patient_banner()
        patient_banner.

there will be no autocomplete options when using this variabe?

 

I also can't click a function call and be taken to that declaration?

 

I'm not complaining here, just asking

 

Smiley Happy

Community Leader

Re: Syntax highlighting

Hi,


Most of editors doing this but TC IDE no.


There is no solution for this for now.


I asked the same questions few months ago.

 

https://community.smartbear.com/t5/TestComplete-Feature-Requests/TestComplete-intellisense-why-it-wo...

View solution in original post

Occasional Contributor

Re: Syntax highlighting

@Wamboo Thanks

 

I don't normally put a thanks, because other forums were like, lets keep unwanted noise down. Just click like/kudos. So not sure what people do here. But thanks anyway

New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors