Comments (4)
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.
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.
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.
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)
- Configuration HOT 13
- Format on save option HOT 9
- Clips cannot be beautified and crashed Nova HOT 11
- Bug: Blank space added for one-line, no-content nodes HOT 8
- Support for .Liquid files HOT 2
- Unformatting HOT 4
- Mac Keyboard Shortcut not working in Nova HOT 3
- [Feature Request]: Consider allowing to load an external JS Beautify script/automatic updater HOT 2
- Emptying a config option (type=text) re-applies the default HOT 1
- Project Settings
- Add configuration setting for indent_empty_lines HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nova-beautify.