Copy link to clipboard
Copied
I may have a very specific case here, but indentation does not seem to wokr as it did years ago with DW 4, 6 etc. What I began experiencing in Dreamweaver CC in 2017.2 or possibly the version prior was a change in indentation in Code View. Lots of sites I hand-code are broken down like such:
Code for /pages/the-company.php
<img src="/img/folder2/an-image.jpg" alt="sample alt text" class="img-class" width="300" height="250">
<p>Lorem ipsum dolor sit ... placerat.</p>
<p>Pellentesque rutrum ... lobortis molestie.</p>
<ul>
<li>Sample list item 1</li>
<li>Sample list item 2</li>
<li>Sample list item 3</li>
<li>Sample list item 4</li>
</ul>
<p>Duis nunc augue, ... vitae tortor.</p>
<p>Suspendisse in eros ... interdum ultricies.</p>
<p>Pellentesque non nisi id ... et sodales.</p>
<p>Etc, you get the idea.</p>
Note that content in the page begins with 2-4 TABs. That makes it neater when I View>Source - my content code falls where I'd expect within the header, sidebar & footer in between structural HTML.
The content pages are devoid for the most part of structural HTML like <head> <body> since the code is 100% content. I often begin with an <img> tag at the top and go to a PDF to grab text one paragraph at a time, then go to an online an online Line Break Removal Tool to turn text like this:
Lorem ipsum dolor sit amet, consectetur
adipiscing elit. Vestibulumtempor condimentum
ante, sit amet egestas turpis lacinia a.
Sed et cursus orci, eu luctus ante. Donec
auctor posuere dolor quis aliquam. Integer
in leo fermentum, scelerisque velit et, ullamcorper
libero. Donec sapien sem, elementum rhoncus mauris
nec, scelerisque tincidunt leo. Ut quis metus
consequat, congue eros lobortis, suscipit ipsum.
into neat, neater text like this:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulumtempor condimentum ante, sit amet egestas turpis lacinia a. Sed et cursus orci, eu luctus ante. Donec auctor posuere dolor quis aliquam. Integer in leo fermentum, scelerisque velit et, ullamcorper libero. Donec sapien sem, elementum rhoncus mauris nec, scelerisque tincidunt leo. Ut quis metus consequat, congue eros lobortis, suscipit ipsum.
I paste the text into my content file and as I do, the identation shifts farther and farther in one direction as I add new paragaphs of text. For example:
first pragraph
second paragraph
third paragraph
etc
Or possibly the opposite direction:
first pragraph
second paragraph
third paragraph
etc
At any rate after I get all of my code I need to highlight and SHIFT+TAB it to the left margin so its all lined up and then TAB my now lined up code out to where I want it.
As you can imagine this is tedious and I was hoping there was a setting that would emulate older indentation settings that maintain the current TAB indetation each time I press ENTER. So if I've TABbed out 4 times, then each time I hit ENTER the next line of code I enter would be TABbed 4x directly below the text/code above.
My current settings in Dreamweaver 2017.5 (I just updated from 2017.2 today and have not used it yet except to type and replicate this example for posting) in Edit > Prefernces > Code Format is:
Indent: [checked] with 1 Tabs
Tab size: 4 [unchecked] insert as spaces
Emmet: [checked] Expand abbreviations using the Tab key
Line break type: LF Unix
TD tag: [checked] do not include a break inside the TD tag
Advanced Formatting: I've not used Tag Libraries so far as I know so I suppose that's all default(??)
Minimum code folding size: 2 lines
Thank you in advance for taking the time to read this small novel.
- GHC
Copy link to clipboard
Copied
Hello George,
Is the issue occurring when you replace the content of a p tag with the text or while tying </p>
Can you please share a video capture of the issue. It will help us in recreating the issue locally.
Regards