tab char on program editor

Messages in english

Modérateur : xcasadmin

compsystems
Messages : 603
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

tab char on program editor

Message par compsystems » mer. nov. 15, 2017 7:45 pm

Hello, In the coding of Python,t is necessary to visualize the character tabulation [->], please can you adhere this feature

Image

Image

Thanks

parisse
Messages : 5882
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: tab char on program editor

Message par parisse » jeu. nov. 16, 2017 8:49 am

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.

compsystems
Messages : 603
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

Re: tab char on program editor

Message par compsystems » jeu. nov. 16, 2017 12:42 pm

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

parisse
Messages : 5882
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: tab char on program editor

Message par parisse » jeu. nov. 16, 2017 1:21 pm

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.

Répondre