Page 1 sur 1
tab char on program editor
Publié : mer. nov. 15, 2017 7:45 pm
par compsystems
Hello, In the coding of Python,t is necessary to visualize the character tabulation [->], please can you adhere this feature
Thanks
Re: tab char on program editor
Publié : jeu. nov. 16, 2017 8:49 am
par parisse
It is not *necessary*, it is an *additional* feature of your specific UI, I have no idea how that could be implemented in Xcas, and I don't think it is really important since it is recommended to use 4 white spaces per indentation. Just don't use tab.
Re: tab char on program editor
Publié : jeu. nov. 16, 2017 12:42 pm
par compsystems
I think that if it is necessary, because python does not use an instruction that indicates where each block of instructions ends, then visualizing the character tab allows us to know if the indentation is correct or not.
visualizing the tab character [->] must be very complicated

.
Another idea I think that if it can be incorporated is the LINE NUMBER on field of the program editor, please add position XY, where x = row, y = col
in non-python mode please add a tabulation option by menu, many codes that are shared in the web, are aligned to the left
Re: tab char on program editor
Publié : jeu. nov. 16, 2017 1:21 pm
par parisse
By the way, Pyzo does not show tabs...
The Xcas editor is using a FLTK widget that does not show line numbering, I will certainly not rewrite a complete widget to do that, instead you can move the cursor in your program and look at the line number at the right of the menubar. Inside Xcas for Firefox, lines are numbered because CodeMirror does line numbering.
You can indent code inside Xcas with the tab shortcut.