Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Result display suggestion #12

Open
nemosmithasf opened this issue Oct 16, 2020 · 2 comments
Open

Result display suggestion #12

nemosmithasf opened this issue Oct 16, 2020 · 2 comments

Comments

@nemosmithasf
Copy link

Love this idea, hope you keep up the good work.

One suggestion for the way results are displayed. Rather than offsetting it by X amount of spaces, perhaps it would be better to put it next the to output, but with a // so there's no confusion.

Alternatively, you can consider the way Quokka does it, which is to render the output in a different colour.

Screen Shot 2020-10-16 at 5 55 29 PM

ideal

Screen Shot 2020-10-16 at 5 56 42 PM

@dufferzafar
Copy link

The different color approach looks cool!

@Mammal4963
Copy link

Mammal4963 commented Sep 13, 2022

Hi,

Made an account just to post this. You can do the following to change the output style. I'll show an example.

On Windows navigate to following folder
C:\Users\ YourUserHere\ .vscode\extensions\sagebind.mathpad-0.0.2\out

Find the decorator.js file, make a copy and save as decorator.js.bak. Just in case anything goes wrong you can revert back.

Open decorator.js, on line# 72 - 75.

Change this

                        after: {
                            contentText: ` = ${this.format(value)}`,
                            margin: "0 0 0 24em"
                        }

to this

                        after: {
                            contentText: ` // ${this.format(value)}`,
                            margin: "0 0 0 1em"
                        }

This will make the result appear at the end of the line with 2 slashes before the result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants