prettyhtml icon indicating copy to clipboard operation
prettyhtml copied to clipboard

Some scenes need to have double quotes and single quotes at the same time

Open 1057891494 opened this issue 6 years ago • 4 comments

Before you submit an issue we recommend you drop into the Gitter community and ask any questions you have or mention any problems you've had getting started with prettyhtml.

🐛 Bug Report

Some scenes need double quotes and single quotes existing at the same time

To Reproduce

I have this code in the vue template:

<input v-input-check='[params.qrptfg,"select"]' @blur="toLogin('NO')" />

When I use formatting, the code becomes

<input v-input-check="[params.qrptfg,"select"]" @blur="toLogin('NO')" />

Expected behavior

I want the code to be like this

<input v-input-check='[params.qrptfg,"select"]' @blur="toLogin('NO')" />

I want to know whether you can provide a third option, which won't change the quotes.

Context

  • [ ] Angular
  • [ ] Svelte
  • [x] Vue
  • [ ] Riot
  • [ ] HTML5 only

Your Environment

  • Prettyhtml version:1.9.0
  • NodeJs version:10.8.0
  • Environment name and version:vscode 1.37.1
  • Operating System and version:windows10

1057891494 avatar Aug 26 '19 01:08 1057891494

Would you like to work on this?

StarpTech avatar Aug 26 '19 06:08 StarpTech

Maybe i can have a try,i will upload to you,you can accept it or modify, its up to you.

1057891494 avatar Aug 27 '19 06:08 1057891494

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 11 '19 07:09 stale[bot]

Hello, I don't know why this library is introduced into the Vue project. With this API, the project will not run. They say we can't find the third party. Can you help me? Thank you very much.

y912765390 avatar Oct 31 '19 08:10 y912765390