Ask Your Question
1

How to use Notepad++ for SageMath (or using vim)

asked 2019-05-14 09:15:20 -0500

Algebear gravatar image

updated 2019-05-14 11:09:02 -0500

After some research on this website, I have still not found a nice way to use an the editor Notepad++ for Sage. Is there some nice plug-in for this or do you use another editor for writing in Sage? I can't manually add tabs in Notepad++ because then the code looks awful in Sage since it places (multiple) ^I in front of lines of code. Thanks in advance for any help.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2019-05-14 13:19:33 -0500

ortollj gravatar image

updated 2019-05-14 13:25:25 -0500

Hi I had to meet this problem, I also prefer to use notepad ++, but when I copied the code in the notebook the indentation was not good.you have to configure notepad ++ like this: image description

in any case for me it works, tell me if it's ok for you too !.

edit flag offensive delete link more

Comments

Oh, that makes me so happy! Such a simple solution and this is the end to my endless frustration of trying to manually put the right amount of spaces everywhere.... Thanks a lot!!

Algebear gravatar imageAlgebear ( 2019-05-14 14:08:23 -0500 )edit

I take this opportunity to add something that is not well known on most text editors. To add or remove one or more entire columns of characters (example tabs, or # for comments), position your mouse at the chosen location, then press and hold the Alt key and move your mouse vertically (and horizontally if necessary), then type the desired character (s). This also works in the SageMath notebook.

ortollj gravatar imageortollj ( 2019-05-15 00:30:58 -0500 )edit

I use Ctrl+Q for comment and uncommenting blocks in Notepad++.

Algebear gravatar imageAlgebear ( 2019-05-15 10:05:30 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-05-14 09:15:20 -0500

Seen: 72 times

Last updated: May 14