Git Product home page Git Product logo

Comments (4)

patrickvuarnoz avatar patrickvuarnoz commented on August 23, 2024

Hi Chris

Thanks for your issue report. I share your pain with the missing beautifier for Nova – I would have expected that they include something so fundamental themselves. But no, they didn't and don't plan to do so. That's why I ported the Beautify-Formatter I was used to from Brackets to Nova.

Unfortunately I'm currently a bit under water with my normal work but I will have a look at the issue as soon as I have time.

Best
Patrick

from nova-beautify.

patrickvuarnoz avatar patrickvuarnoz commented on August 23, 2024

Hi Chris

Actually you don't have to "select all" and then "format", you can directly "format" without a selection which formats the whole document. But I've seen that the scroll position is off when doing so.

I now released a new version of the extension with format on save option. This also optimizes the cursor position after formatting. When you do a format on save or a format without text selection it keeps the cursor position within the document so you can just continue typing where you left off.

Hope this serves your needs.

Best
Patrick

from nova-beautify.

TechRemarker avatar TechRemarker commented on August 23, 2024

Updated to latest version. Can't seem to get to work, maybe I have to restart? Also in settings don't see PHP which I presume is one the most popular use cases, so I imagine checking "HTML" includes PHP documents which is most all WordPress files, the most popular CMS in the world. Can try uninstalling and reinstalling maybe?

from nova-beautify.

patrickvuarnoz avatar patrickvuarnoz commented on August 23, 2024

I'm sorry but PHP is not supported. JS-Beautify is not built to format PHP so I can't guarantee that when applying HTML formatting to a PHP-HTML file (a) everything will still work and (b) the format will make sense.

But I'm thinking about an option to manually specify further file/syntax types which then would allow to also add php-html at one's own risk.

from nova-beautify.

Related Issues (12)

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.