Syntax highlighting
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
[Hall of Fame]
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
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for this. What I'm looking for is more so specific keyword highlighting. Take example this snippet in TestComplete
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.
Maybe I didn't enable the right option?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oh, ok I 've figured it out - thanks
One think I couldn't seem to find was highlighting for just arguments?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
In my opinion thres no option to highlight only specific words like arguments in TestComplete IDE.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
why this post is marked as resolved when it is not resolved.
Python is a widely used language, especially in the testing field.
Thank you for developing this.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@ChristopheC wrote:
Hello,
why this post is marked as resolved when it is not resolved.
Python is a widely used language, especially in the testing field.
Thank you for developing this.
It's resolved because the question has been answered. If you wish to see TestComplete do more, you can upvote the feature request for this (I believe one was made) or create a Feature REquest yourself.
Robert Martin
[Hall of Fame]
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
Vegas Thrill Rider
Extensions available
