Code Monkey home page Code Monkey logo

Comments (9)

apollonian avatar apollonian commented on May 19, 2024 1

Sounds good!
I'll come up with a few subtle designs to choose from.

from editor.

apollonian avatar apollonian commented on May 19, 2024

Taking up this issue. ✌️

from editor.

apollonian avatar apollonian commented on May 19, 2024

@domoritz If the button position looks fine, I can go ahead and submit a PR.

feature-format-button

from editor.

domoritz avatar domoritz commented on May 19, 2024

Sweet. The only issue is that we don't see this in the automatic parsing mode but I'm okay with that for now.

Just wondering: is it possible to override the formatter that's used for right click -> format document?

from editor.

apollonian avatar apollonian commented on May 19, 2024

When automatic parsing mode is on the button aligns to the right margin.
Ref.
screen shot 2018-03-05 at 12 39 17 am

Secondly, I do think it might be possible via: https://microsoft.github.io/monaco-editor/api/modules/monaco.languages.html#registerdocumentformattingeditprovider

from editor.

domoritz avatar domoritz commented on May 19, 2024

We should probably improve the style. The current buttons were a quick hack.

from editor.

apollonian avatar apollonian commented on May 19, 2024

@domoritz Some explorations

https://codepen.io/abhi/pen/qxGNMZ

from editor.

domoritz avatar domoritz commented on May 19, 2024

I like the last one but does it work on white background? Let's have one style for all buttons in the UI. Look at the button in the gist modal and the toolbar in the bottom right.

from editor.

apollonian avatar apollonian commented on May 19, 2024

Sure, I chose the background color based on the header's light gray background. I'll tweak it a little to work on a white background.

[Update] Use white background

from editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.