开发者

How to stop Dreamweaver from converting " double quotes to "?

开发者 https://www.devze.com 2023-03-03 09:18 出处:网络
I need to use double quotes inside a tag How to stop Dreamweaver from converting \" double quotes to " ?

I need to use double quotes inside a tag

How to stop Dreamweaver from converting " double quotes to " ?

I need the original " and not &开发者_如何学编程amp;quot; but as soon as I add the " quote via Design view, it shows " in design view, but in code view its "

I need the " double quote to remain the same in both Design and Code view.

The reason is that i need the double quote "" in a tag such as {mytag category="news"}

I need the exact tag as {mytag category="news"} but dreamweaver is changing the double quotes in the Code view to " so this is what i am getting in the Code view

{mytag category="news"}

ISSUE :: SOLVED


There is no way to achieve this.

In HTML

foo='"'

and

foo='"'

are equivalent. If you need one of those two syntaxes over the other, then you are not dealing with HTML and shouldn't be using an HTML editor to produce your content.

foo="""

… on the other hand, is an error and you should have even less reason to want that.


I was able to disable this quote-pairing as follows :

  1. Quit Dreamweaver.
  2. Edit the text file: ~/Library/Application Support/Adobe/Dreamweaver CC 2017/en_US/Configuration/Brackets/brackets.json
  3. Add the following line within the body: "closeBrackets": false,
  4. Save the text file and relaunch Dreamweaver.

It should no longer auto-complete quote pairs.

Some people have reported they needed to make this change to the same-named file within the application folder as shown below, but I had no such file on my UK installation:

Applications\Adobe\Dreamweaver CC 2017\en_US\Configuration\Brackets\brackets.json


Found the answer

I just changed the DOCTYPE from XHTML to HTML5

And it worked fine, it did not convert the double quotes to its entity.

This solves the issue for me, for now.

0

精彩评论

暂无评论...
验证码 换一张
取 消