Coder Social home page Coder Social logo

Comments (11)

NewFuture avatar NewFuture commented on July 17, 2024 2
"minapp-vscode.wxmlFormatter": "prettyHtml", //指定格式化工具
"minapp-vscode.prettyHtml": {
     "wrapAttributes" : true // 属性换行
} 

from minapp-vscode.

qiu8310 avatar qiu8310 commented on July 17, 2024 1

格式化这块当初只是一个辅助功能,没想到这个功能大家的使用量还是蛮大,我会考虑集成的

from minapp-vscode.

qiu8310 avatar qiu8310 commented on July 17, 2024

@littlee 你要求的功能 NewFuture 实现了,可以参考上面 NewFuture 提交的代码(或者在vscode配置中看最新添加的minapp-vscode开头的配置),我暂时还没写文档

from minapp-vscode.

littlee avatar littlee commented on July 17, 2024

牛逼

from minapp-vscode.

mxppxm avatar mxppxm commented on July 17, 2024

使用prettyHtml后image标签会报错:Void elements do not have end tags "image"。应该怎么处理呢?

from minapp-vscode.

NewFuture avatar NewFuture commented on July 17, 2024

可以这样写

<image></image>

from minapp-vscode.

mxppxm avatar mxppxm commented on July 17, 2024

向setting中添加了新的prettyhtml配置,就是这么写了,然后minapp报了这个错。

from minapp-vscode.

NewFuture avatar NewFuture commented on July 17, 2024

@mxppxm

prettyHtml对image按照html5处理的 可以参考 #11 (comment)

或者 用 prettier #11 (comment)

from minapp-vscode.

NewFuture avatar NewFuture commented on July 17, 2024

prettyhtml 这个PR好像是来支持image的 Prettyhtml/prettyhtml#73

from minapp-vscode.

mxppxm avatar mxppxm commented on July 17, 2024

e.....不好意思,,我能问问要怎么用嘛。。不懂PR

from minapp-vscode.

qiu8310 avatar qiu8310 commented on July 17, 2024

最新版本(1.14.0)解决了 prettyhtml 格式化的问题,和 https://prettyhtml.netlify.com/ 中的格式化效果是一样的

from minapp-vscode.

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.