Ask Your Question
1

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

asked 2019-05-14 16:15:20 +0200

Algebear gravatar image

updated 2019-05-14 18:09:02 +0200

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 20:19:33 +0200

ortollj gravatar image

updated 2019-05-14 20:25:25 +0200

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 21:08:23 +0200 )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 07:30:58 +0200 )edit

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

Algebear gravatar imageAlgebear ( 2019-05-15 17:05:30 +0200 )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 16:15:20 +0200

Seen: 909 times

Last updated: May 14 '19