To disable code and still have it?

   5611   9   2
User Avatar
Member
171 posts
Joined: Oct. 2016
Offline
Hi,
Seems I do something wrong again:
In VEX usually I see // or # are used before some code to make text after this sign yellow/golden that seems make it either not taking in count or title for written under or a kind of a comment.
In the Python Source Editor, I type # before stroke - and it changes only this stroke to another color, that seems should have the same effect.
Is there a way to make all the code # between # disabled there somehow?
Or the way only is to type # before every stroke?
Thanks for any advices!
Edited by ryuku - Jan. 4, 2018 18:45:32
User Avatar
Member
538 posts
Joined: Dec. 2006
Offline
VEX:
/*
Line 1
Line 2
...
*/

Python:
'''
Line 1
Line 2
...
'''
https://gumroad.com/alexeyvanzhula [gumroad.com]
User Avatar
Member
171 posts
Joined: Oct. 2016
Offline
Hello, vux,

Thanks for the VEX tip, caught it, didn't know before and it works.

But sorry - seems I don't understand what exactly you mean about Python?
Just … code … - doesn't give any changes or I do it in a wrong way.
Can you please clarify it?

Thanks for the help.
Edited by ryuku - Jan. 4, 2018 19:22:26
User Avatar
Member
171 posts
Joined: Oct. 2016
Offline
Hm hm…
so >
'''
This is a multiline
comment. I can't type here whatever I want.
'''
Do I understand correctly - it doesn't change color of the code, but disable it anyway?
Edited by ryuku - Jan. 4, 2018 19:29:07
User Avatar
Member
538 posts
Joined: Dec. 2006
Offline
yes
https://gumroad.com/alexeyvanzhula [gumroad.com]
User Avatar
Member
171 posts
Joined: Oct. 2016
Offline
Ahha, thank you for answering,
but do you know - is it possible to do it with some another syntax, but changing color?
Edited by ryuku - Jan. 4, 2018 19:34:16
User Avatar
Member
538 posts
Joined: Dec. 2006
Offline
Don't really sure what did you mean. In Python Source Editor it highlights with green color, just like simple string variable. It is because “”“…”“” syntax is also used for multiline string variables. Anyway I recommend you to use external editor for coding. Sublime Text is a good choice.
Edited by Alexey Vanzhula - Jan. 4, 2018 19:41:52
https://gumroad.com/alexeyvanzhula [gumroad.com]
User Avatar
Member
171 posts
Joined: Oct. 2016
Offline
Aha aha
My fault - I saw both examples - written by you and at that site > ‘'’ as …
Sorry sorry.
My eyes and attentiveness.
Yes > ‘'’ and “”" make code between them - green.
It's a pity that not purple or orange. Almost sure it's not changable.
You helped me a lot. Thanks for your time and patience.

Aaa and I have Sublime Text installed, but realized - want to have everything inside of Houdini.

Oh *attention
Edited by ryuku - Jan. 4, 2018 19:55:29
User Avatar
Member
538 posts
Joined: Dec. 2006
Offline
You are welcome.
https://gumroad.com/alexeyvanzhula [gumroad.com]
  • Quick Links