Skip to main content
Participating Frequently
July 19, 2017
Question

Code formatting for xml file without extension

  • July 19, 2017
  • 4 replies
  • 3478 views

In work, one of my colleagues is having a bit of a problem with extension-less XML files. We have it set up that DW will open it, but despite there being the XML DTD at the top, it is not recognising it in terms of code formatting and colouring or validation.

She is using DW CC 17.0.2

Mine is working fine, though I am on a much older licence - I'm using CS4.

We've been through all the configurations we can think of and can't see any differences between our setups. Is this a known issue, or is there something we're missing.

Note that it is NOT possible to add an extension to these files, as they come from another system and must be named the way they are.

This topic has been closed for replies.

4 replies

Niharika Jha
Adobe Employee
Adobe Employee
July 21, 2017

Hi,

As per Dw 17.5, we are now looking for extensions so that we can convey Linting errors to the users. If you open a file into Dw, which has no extension then there would be no linting and code coloring seen because it will be considered as a text file. Please refer to the screenshots below for more reference-

1. I opened an extension-less file into Dw to get the following message-

2. If you don't give extension even after that, we show it as a text file-

Hope it answers your query.

Regards,

Niharika Gupta

Adobe Dreamweaver

Participating Frequently
July 21, 2017

Hi Niharika

Thanks for explaining that this is indeed expected behaviour and not a bug. I'm curious as to the reasoning, however, and what your development team hoped to achieve with this. The ability for DreamWeaver to fall back on DTDs is not just useful but, for our web team at least, rather essential - and there's a disturbing trend lately for useful features to be stripped from DW needlessly (see also: "find specific tag" feature).

Is this ever going to be re-implemented?

Failing that, is there a way to roll back to a pre-17.5 version on a Creative Cloud licence?

pziecina
Legend
July 21, 2017

To install a previous version please read the 1st answer to this discussion -

https://forums.adobe.com/thread/2359319

The problem with Dw 2017, is that many users do like it, but for those developers who are not simply creating small web sites, or those users who develop outside the Bootstrap and pre/post-processor workflow, they have not been considered by those who make the decissions.

I could probably write an entire 1000 post thread just to list what I think is wrong, listing individual complaints, but untill someone senior from the Dw team is willing to listen the only method of complaining, unless it is a specific bug or feature request, is via this forum.

Nancy OShea
Community Expert
Community Expert
July 20, 2017

XML files are formatted OK for me.  I didn't do anything special.  My Code Theme is RubyBlue -- a Brackets theme I downloaded from GitHub and applied through Preferences in DW.

Nancy O'Shea— Product User & Community Expert
pziecina
Legend
July 20, 2017

Have you tried setting the code type to xml, at the bottom r/h side of the document window?

Participating Frequently
July 20, 2017

While that turns on code colouring, it's only temporary - so no good when working with 50+ files - and it doesn't enable validation or source formatting.

Preran
Legend
July 20, 2017

Hi Chris,

I am not sure if this change has been made recently. Let me check with the team and get back to you.

Thanks,

Preran

Participating Frequently
July 20, 2017

thanks Preran. It seems that back in the CS4 days, Dreamweaver would look at the DTD if there was no file extension, and behave accordingly, but this behaviour is now missing.