Copy link to clipboard
Copied
I'm using DW CC 19.1. "Format source code" has simply stopped working. Nothing indents at all. My code validates clean and works fine, and my format settings are set to "indent with 4 spaces". But nothing indents. Any ideas?
Use the Adobe CC Cleaner tool before you re-install.
Use the Creative Cloud Cleaner Tool to solve installation problems
Copy link to clipboard
Copied
A bad/unrecognized/wrong file extension could cause that.
Child pages of .DWT Templates won't allow you to format the locked regions.
Having the wrong file type selected in the bottom left of the Document Window might cause an issue or two.
Copy link to clipboard
Copied
There have been issues with 'Format source code' especially where PHP code is concerned. The latest prerelease of Dreamweaver appears to fix these issues (from what I've seen anyway) inlcuding some issues with code indentation.
If you feel it was working and suddenly stopped working and you hadn't updated Dreamweaver I would in the first instance check you code for errors because Dreamweaver seems to be a lot more prone to 'strange' things happniing in code view if you have code errors these days.
In the first instance do a quick W3C validation.
Copy link to clipboard
Copied
The code validates fine and there is no PHP in it.
Copy link to clipboard
Copied
What is the URL to your online page?
Copy link to clipboard
Copied
At the moment I'm working on my local machine.
Copy link to clipboard
Copied
i'd be interested to see if the code will format in my DW 19. But if you can't put it online, then the other option is close DW 19. Open a previous version, format the code. Save file.
Copy link to clipboard
Copied
Copy and paste the code from the page please
Copy link to clipboard
Copied
Here is one example. All my files are behaving this way. I think there's probably something wrong with my template. When I run "Format source code" on this, the cursor always jumps to the end of line 322 (<!-- InstanceBeginEditable name="Main Content" -->) and nothing else happens. No error messages, no warnings.
<!DOCTYPE html>
<html lang="en">
<!-- InstanceBegin template="/Templates/CBRN-Main-Template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta charset="utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>About Us | CBRN International, Inc. | CBRNe Instruments & Systems</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<meta name="Description" content="CBRN International designs, manufactures and sells sensors and sensing systems for the collection and identification of biological agents and chemical contaminants.
" />
<meta name="Keywords" content="CBRN international, air samplers, air sampling, biohazard detectors, chemical sensors, biological sensors" />
<!-- InstanceEndEditable -->
<!-- favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#2b5797">
<meta name="theme-color" content="#ffffff">
<!-- **CSS - stylesheets** -->
<link id="default-css" href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link id="skin-css" href="css/red.css" rel="stylesheet" type="text/css" media="all" />
<link id="responsive-css" href="css/responsive.css" rel="stylesheet" type="text/css" media="all" />
<link rel="stylesheet" href="css/printstyle.css" type="text/css" media="print" />
<!-- mobile setting -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="css/ie8-and-down.css" />
<![endif]-->
<!-- **jQuery** -->
<!-- InstanceBeginEditable name="scripts" -->
<script src="js/jquery.min.js"></script>
<script src="js/jquery.jcarousel.min.js"></script>
<script src="js/tinynav.min.js"></script>
<script src="js/ultimate-custom.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/sendmail.js"></script>
<!-- NEW SHARETHIS CODE 03/19/2018
<script src="//platform-api.sharethis.com/js/sharethis.js#property=5aa7f3f8359372001361845f&product=inline-share-buttons" async></script>
<script>var switchTo5x=true;</script>
<script src="https://ws.sharethis.com/button/buttons.js"></script>
<script>stLight.options({publisher: "ur-d2c9d0e2-d5ed-f977-592b-3473d0f50e6", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
END NEW SHARETHIS CODE -->
<!-- InstanceEndEditable -->
</head>
<body>
<!-- **Wrapper** -->
<div id="wrapper">
<!-- **Header** -->
<div id="header">
<div class="container">
<!-- **Logo** -->
<div id="logo">
<a href="index.html" title="">
<img src="images/cbrn-intl-logo.png" alt="" title="" />
</a>
</div>
<div id="print-logo">
<!-- this div is only used with print-style.css -->
<a href="index.html" title="">
<img src="images/cbrn-intl-logo.png" alt="" title="" />
</a>
</div>
<!-- **Logo - End** -->
<div class="float-right">
<!-- **Searchform** -->
<form action="search.php" id="searchform" method="get">
<fieldset>
<input name="zoom_query" type="text" onblur="this.value=(this.value=='') ? 'Enter Keyword' : this.value;" onfocus="this.value=(this.value=='Enter Keyword') ? '' : this.value;" value="Enter Keyword" class="text_input" />
<input name="submit" type="submit" value="" />
</fieldset>
</form>
<!-- **Searchform - End** -->
</div>
</div>
</div>
<!-- **Header - End** -->
<!--ZOOMSTOP-->
<!-- **Top-Menu** -->
<div id="top-menu">
<div class="container">
<ul class="menu">
<li><span class="hoverL"><span class="hoverR"></span></span>
<a href="index.html" title="Home">Home</a>
</li>
<li><span class="hoverL"><span class="hoverR"></span></span>
<a href="" title="Products">Products</a>
<ul>
<li>
<a href="#" title="">Collection Tools</a>
<ul>
<li>
<a href="Collect.html" title="All Air Samplers">All Air Samplers</a>
</li>
<li>
<a href="SASS_2300_air_sampler.html" title="SASS 2300 Wet Air Sampler">SASS 2300 Wet Sampler</a>
</li>
<li>
<a href="SASS_2400_air_sampler.html" title="SASS 2400 Low-Volume Wet Air Sampler">SASS 2400 Low-Volume</a>
</li>
<li>
<a href="SASS_3100_air_sampler.html" title="SASS 3100 Dry Air Sampler">SASS 3100 Dry Sampler</a>
</li>
<!--<li><a href="SASS_3100_Plus.html" title="SASS 3100 Plus">SASS 3100 Plus</a></li>-->
<li>
<a href="SASS_3010_Particle_Extractor.html" title="SASS 3010 Particle Extractor">SASS 3010 Extractor</a>
</li>
<li>
<a href="SASS_4000_Concentrator.html" title="SASS 4000 Concentrator">SASS 4000 Concentrator</a>
</li>
<!--<li><a href="SASS_4000_Plus.html" title="SASS 4000 Plus">SASS 4000 Plus</a></li>-->
<li>
<a href="SASS_4100_Two_Stage_Collector.html" title="SASS 4100 Two-Stage Collector">SASS 4100 Two-Stage Collector</a>
</li>
<!--<li><a href="SASS_4100_Plus.html" title="SASS 4100 Plus">SASS 4100 Plus</a></li>-->
<li>
<a href="SASS_4200_Vehicle_Mount.html" title="SASS 4200 Vehicle-Mount Collector">SASS 4200 Vehicle-Mount</a>
</li>
<li>
<a href="UAV_Index.html" title="UAV-Based Collectors">UAV-Based Collectors</a>
</li>
</ul>
</li>
<li>
<a href="Identify.html" title="All Detection Tools">Detection and Identification Tools</a>
<ul>
<li>
<a href="Identify.html" title="All Detection Tools">All Detection and Identification Tools</a>
</li>
<li>
<a href="Chemical_Detection.html" title="Chemical Detection">Chemical Detection</a>
</li>
<!--<li>
<a href="Gas_Detection.html" title="Gas Detection">Gas Detection</a>
</li>-->
<li>
<a href="Radiation_Detection.html" title="Radiation Detection">Radiation Detection</a>
</li>
<li>
<a href="Tac-7.html" title="Tac-7 Bioaerosol Detector">Tac-7 Bioaerosol Detector</a>
</li>
<li>
<a href="Biohawk_Bioidentification_System.html" title="BioHawk 8-Channel Collector/Bioidentifier">BioHawk 8-Channel</a>
</li>
<li>
<a href="RAPTOR_Bioassay_System.html" title="RAPTOR 4-Channel Bioassay">RAPTOR 4-Channel</a>
</li>
<li>
<a href="QuikChek-Aerosol-Simulants.html" title="Aerosol Simulants">QuikChek Aerosol Simulants</a>
</li>
<li>
<a href="QuikTest_Bioscreen.html" title="QuikTest Bioscreen">QuikTest Bioscreen Kit</a>
</li>
<li>
<a href="QuikTest_HHA.html" title="QuikTest Hand-Held Assay">QuikTest Hand-Held Assay</a>
</li>
<li>
<a href="D1000_Downdraft_Table.html" title="D1000 Downdraft Table">D1000 Downdraft Table</a>
</li>
<li>
<a href="Negative_Pressure_Room.html" title="Controlled Environments">Controlled Environments</a>
</li>
</ul>
</li>
<li>
<a href="#" title="Integrated CBRN Systems">Integrated CBRN Systems</a>
<ul>
<li>
<a href="CBRN-Products.html" title="All CBRN Systems">All CBRN Systems</a>
</li>
<li>
<a href="ASAP-II_Mailrooms.html" title="ASAP II Postal Processing">ASAP II Postal Processing</a>
</li>
<li>
<a href="ASAP-V_Infrastructure.html" title="ASAP V Critical Infrastructure Protection">ASAP V for Infrastructure</a>
</li>
<li>
<a href="Remote_Sensor_Nodes.html" title="Remote Sensor Nodes">Remote Sensor Nodes</a>
</li>
<!--<li><a href="BioHawk_Plus.html" title="BioHawk Plus">BioHawk Plus</a></li>-->
<li>
<a href="UAV_Index.html" title="UAV-Based Collectors">UAV Systems</a>
</li>
<li>
<a href="Flying_UAV_Lab.html" title="Flying UAV Laboratory">Flying UAV Laboratory</a>
</li>
</ul>
</li>
<li>
<a href="Biolink_Bluetooth.html" title="BioLink Bluetooth Communications">Wireless Links</a>
</li>
<li>
<a href="Custom_Solutions.html" title="Custom Solutions">Custom Solutions</a>
</li>
</ul>
</li>
<li><span class="hoverL"><span class="hoverR"></span></span>
<a href="" title="Services">Services</a>
<ul>
<li>
<a href="Services.html" title="Research & Development">Research & Development</a>
</li>
<li>
<a href="Collaborate.html" title="Collaboration & Licensing">Collaboration & Licensing</a>
</li>
</ul>
</li>
<li><span class="hoverL"><span class="hoverR"></span></span>
<a href="RequestQuote.html" title="Request Quote">Request Quote</a>
</li>
<li><span class="hoverL"><span class="hoverR"></span></span>
<a href="About_Us.html" title="About Us">About</a>
<ul>
<li>
<a href="About_Us.html" title="About Us/Contact Info">About Us/Contact Info</a>
</li>
<!--
<li>
<a href="Documents.html" title="Documents and Resources">
Documents
</a>
</li>
<li>
<a href="Research_Development.html" title="R & D History">
R & D History
</a>
</li>
<li>
<a href="Industry_News.html" title="Industry News">
Industry News
</a>
</li>
<li>
<a href="Partners.html" title="Partners">
Partners
</a>
</li>
-->
<li>
<a href="Support.html" title="Support">Support</a>
</li>
<li>
<a href="Privacy.html" title="Privacy Policy">Privacy</a>
</li>
<li>
<a href="WebUseTerms.html" title="Web Use Terms">Web Use Terms</a>
</li>
<!-- <li>
<a href="Sitemap.html" title="Sitemap">
Sitemap
</a>
</li>
-->
</ul>
</li>
<li><span class="hoverL"><span class="hoverR"></span></span>
<a href="#" title="" target="_blank">Galleries</a>
<ul>
<li>
<a href="gallery-asap-ii.html" title="ASAP II Mail Processing">ASAP II Mail Processing</a>
</li>
<li>
<a href="gallery-asap-v.html" title="ASAP V Infrastructure Protection">ASAP V Infrastructure Protection</a>
</li>
<li>
<a href="gallery-sass-2300.html" title="SASS 2300 Wet Air Sampler">SASS 2300 Wet Air Sampler</a>
</li>
<li>
<a href="gallery-sass-3100.html" title="SASS 3100 Dry Air Sampler">SASS 3100 Biological/Radioactive Dry Air Sampler</a>
</li>
<li>
<a href="gallery-sass-4200.html" title="SASS 4200 Vehicle-Mount Concentrator">SASS 4200 Vehicle-Mount Concentrator</a>
</li>
</ul>
</li>
<!-- VIDEO SECTION
<li>
<span class="hoverL">
<span class="hoverR">
</span>
</span>
<a href="video.html" title="">
Videos
</a>
</li> -->
<!--END VIDEO SECTION-->
</ul>
</div>
</div>
<!-- added 9/25/27 ceg -->
<!--ZOOMRESTART-->
<!-- **Top-Menu - End** -->
<!-- ** Main** -->
<div id="main">
<!-- **Container** -->
<div class="container">
<!-- **Content** -->
<div class="content content-full-width">
<div class="styled-elements">
<!-- InstanceBeginEditable name="Main Content" -->
<h1> About Us </h1>
<div>
<p class="one"> CBRN International, Ltd. is an international company dedicated to the development of products and technologies for detecting and identifying chemical, biological, nuclear, radiological, and explosive threats (CBRNE). Its products and services are characterized by a high level of innovation and interdisciplinary problem-solving, representative of the broadly diverse team of scientists and engineers working at the company. With offices in the United Arab Emirates, Turkey, and the United States, the company is well-positioned to serve international markets. </p>
<p> CBRN International's product lines include world-class air samplers and concentrators, biological detectors, mobile threat detection systems, and fixed installation infrastructure protection systems. </p>
<br/>
<div class="aligncenter">
<div class="one-third float-left">
<figure class="float-left">
<img width="256" alt="Atakule. Scisa [CC BY-SA 3.0 (http://creativecommons.org/licenses/by-sa/3.0/)]" src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/02/Atakule.JPG/256px-Atakule.JPG" >
<figcaption>Ankara, Turkey<br/>
</figcaption>
</figure>
</div>
<div class="one-third float-left">
<figure class="float-left">
<img src="images/dubai-skyscraper-1673913_640.jpg" width="256" alt="Dubai skyscraper" />
<figcaption>Dubai, United Arab Emirates<br/>
</figcaption>
</figure>
</div>
<div class="one-third float-left">
<figure class="float-left">
<img width="256" src="images/Seattle_Space_Needle_2018.jpg" alt="Seattle Space Needle 2018. Andrew Henry [CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0)], from Wikimedia Commons" >
<figcaption> Seattle, Washington, USA</figcaption>
</figure>
</div>
</div>
</div>
<!-- InstanceEndEditable -->
</div>
<!-- **Styled Elements - End** -->
</div>
<!-- **Content - End** -->
</div>
<!-- **Container - End** -->
<!--ZOOMSTOP-->
</div>
<!-- **Main - End**-->
<!-- ** Footer** -->
<div id="footer">
<div class="footer-bg">
<div class="container">
<!-- **Contact Us** -->
<div class="column one-third">
<div class="widget">
<h2 class="widgettitle">United Arab Emirates</h2>
<ul class="contact-details">
<li><span class="address"></span>
<p>Mian Mohammad Amjad<br/>
Dubai, UAE<br/>
</p>
</li>
<!--<li><i class="fas fa-mobile-alt"></i><p>+971 52 975 5486</p></li>
<li><p><img src="../images/mobile-phone-icon-18px.png" class="float-left" /> +971 52 975 5486</p></li> -->
<li><span class="phone"></span>
<p>+971 52 975 5486</p>
</li>
<li><span class="mail"></span>
<p>
<a href="mailto:amjad@cbrnintl.com">amjad@cbrnintl.com</a>
</p>
</li>
</ul>
</div>
</div>
<div class="column one-third">
<div class="widget">
<h2 class="widgettitle">Turkey</h2>
<ul class="contact-details">
<li><span class="address"></span>
<p>Ozgur Kaleozu<br/>
Ankara, Turkey<br/>
</p>
</li>
<li>
<span class="phone"></span>
<p>+90 530 140 65 01</p>
</li>
<li><span class="mail"></span>
<p>
<a href="mailto:ozgur@cbrnintl.com">ozgur @cbrnintl.com</a>
</p>
</li>
</ul>
</div>
</div>
<div class="column one-third last">
<div class="widget">
<h2 class="widgettitle">United States</h2>
<ul class="contact-details">
<li><span class="address"></span>
<p>US Office<br/>
Monroe, Washington<br/>
</p>
</li>
<li><span class="phone"></span>
<p>Tel: +1 425 922 4007 Fax: +1 360 863 0439</p>
</li>
<li><span class="mail"></span>
<p>
<a href="mailto:info@cbrnintl.com">info@cbrnintl.com</a>
</p>
</li>
</ul>
</div>
</div>
<!-- **Contact info end ** -->
</div>
</div>
</div>
<!-- **Footer - End** -->
<!-- **Footer Copyright** -->
<div class="footer-copyright">
<div class="container">
<div class="copyright-content">
<ul>
<li>
<a href="index.html" title="Home Page">Home</a>
</li>
<li>
<a href="Collect.html" title="Collection Tools">Collection Tools</a>
</li>
<li>
<a href="Identify.html" title="Bioidentification Tools">Bioidentification Tools</a>
</li>
<li>
<a href="Services.html" title="Services">Services</a>
</li>
<li>
<a href="RequestQuote.html" title="Request Quote">Request Quote</a>
</li>
<li>
<a href="About_Us.html" title="About Us/Contact">About Us / Contact Us</a>
</li>
</ul>
<p>Copyright © CBRN International Ltd. | All Rights Reserved</p>
</div>
<div class="footer-logo">
<a href="index.html" title="">
<img src="images/cbrn-intl-footer-logo.png" alt="" title="" />
</a>
</div>
</div>
<!-- **Footer Copyright - End** -->
</div>
<!-- **Wrapper - End** -->
</div>
</body>
<!--ZOOMRESTART-->
<!-- InstanceEnd -->
</html>
Copy link to clipboard
Copied
Well, apparently it's not a template problem. I created a new html file from scratch, and the same thing happens - i.e., nothing. Zero formatting, no messages. My code format settings are in the screenshot below.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Source Code Format Test</title>
</head>
<body>
<h1>Source Code Format Test</h1>
<p>lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah lorem ipsum blah blah blah. </p>
<p>lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah lorem ipsum blah blah blah. </p>
<p>lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah. lorem ipsum blah blah blah lorem ipsum blah blah blah. </p>
<ul>
<li> list 1</li>
<li> list 2</li>
<li> list 3</li>
<li> list 4</li>
<li> list 5</li>
</ul>
</body>
</html>
Copy link to clipboard
Copied
Thats weird,
I just tested your code in the latest CC 2019 version of Dreamweaver and apply source formatting works fine foir me .....
Copy link to clipboard
Copied
Have you tried resetting your preferences?
On Windows hold down Windows key + Ctrl + Shift while launching Dreamweaver.
It will reset everything and you'll need to reinstall any extensions, if you havd any installed
Copy link to clipboard
Copied
Yes, I reset the preferences yesterday. No improvement.
Copy link to clipboard
Copied
Go to File > SaveAs > new_file_name.html
Close DW.
Restart DW.
Open newly saved file and try Auto Format.
Copy link to clipboard
Copied
By "Auto Format" do you mean "Format Source Code", or is there another command I don't know about?
Copy link to clipboard
Copied
Sorry for confusion. See screenshot.
Copy link to clipboard
Copied
Okay. Yes, I tried your suggestion, but still no change.
I have noticed that occasionally it will arbitrarily shift a tag or two, but in ways that don't make sense. And then it leaves the rest of the code unchanged.
Maybe I need to uninstall and reinstall?
Copy link to clipboard
Copied
Use the Adobe CC Cleaner tool before you re-install.
Use the Creative Cloud Cleaner Tool to solve installation problems
Copy link to clipboard
Copied
Thanks, I'll give that a try.
Copy link to clipboard
Copied
Hi,
we are happy to inform you that we have addressed a couple of PHP bug fixes in our latest release 19.2.0.11274 which can be downloaded from creative cloud.
Please give it a try and let us know if your issue is fixed and share your feedback.
Regards
Dreamweaver Team
Copy link to clipboard
Copied
When things suddenly stop working & you've ruled out code errors, Restoring Preferences can help.
Unusual behavior in Dreamweaver? Try restoring preferences.
Copy link to clipboard
Copied
I tried resetting the preferences - twice - and still no luck. I have checked the code in validator.w3.org, and Dreamweaver gives it the green checkmark too. It says HTML in the file extension box at the bottom of the screen. My Dreamweaver is up to date. Still no formatting. I'm out of ideas. I think this problem started when I finally got around to moving from CS6 to CC a couple of months ago.
Do you think it matters that I'm using WIndows 7?
Copy link to clipboard
Copied
I also tried your code, and it's working fine on mine (latest CC version on Win 10)...
Copy link to clipboard
Copied
SOLVED! I uninstalled and reinstalled DW CC 2019, and the problem is 100% fixed. Thank you all for your suggestions.