Thanks
tab char on program editor
Modérateur : xcasadmin
-
- Messages : 603
- Inscription : sam. févr. 04, 2017 11:34 pm
- Localisation : Colombia
- Contact :
tab char on program editor
Hello, In the coding of Python,t is necessary to visualize the character tabulation [->], please can you adhere this feature


Thanks
Thanks
Re: tab char on program editor
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.
-
- Messages : 603
- Inscription : sam. févr. 04, 2017 11:34 pm
- Localisation : Colombia
- Contact :
Re: tab char on program editor
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
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
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.
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.