Skip to main content
Inspiring
April 6, 2020
Answered

Display Column Numbers

  • April 6, 2020
  • 3 replies
  • 4312 views

How do I show column numbers in code view? I've searched and can't find an answer. Im trying to fix errors that DW shows. Most of mine are Special Characters must be escaped : [ < ], I have no idea what that means.
Thanks

Alan

This topic has been closed for replies.
Correct answer Jon Fritz

Okay Ben, here it is. I edited to maintain my privacy but it doesn't affect the four errors that I showed in my last post.

Alan

 

<head>
<link href="https://www.A.org/stylesheet.css" rel="stylesheet" type="text/css">
<meta name="RATING" content="RTA-5042-1996-1400-1577-RTA">
<title>STORY TITLE</title>
<meta charset="UTF-8">
<style>
.h1 {
font-family: "quicksand", sans-serif;
font-size: 18px;
color: #983200;
text-align: center;
font-weight: 400;
letter-spacing: 5px;
font-style: normal;
display: block;
}
.h2 {
font-family: "Arial";
color: #006600;
text-align: center;
font-size: 16px;
font-weight: bold;
letter-spacing: 25px;
display: block;
}
.h3{
font-family: 'Cormorant Garamond';
color: #242424;
font-size: 32px;
font-weight: lighter;
text-align: center;
font-style: normal;
}
</style>
</head>
<html>
 
  <table width="83%"  border="0" cellpadding="0" cellspacing="0">
    <tbody>
    <tr>
      <td width="16%" ><span class="styletitle"><img src="https://www.A.org/main_image_small.png" alt="" width="185" height="138" title="Small Image"></span></td>
      <td align="center" bgcolor="#B9E181" style="text-align: center"><p class="styleheader">Story Title</p>
        <span class="styleccursive3"><span style="text-align: center">A story from Tempest's fertile imagination</span></span></td>
      <td nowrap="nowrap" bgcolor="#B9E181" style="text-align: left">&nbsp;</td>
      </tr>
    <tr>
      <td height="48" colspan="3"><span class="style1"><span class="styledisclaimercaps" style="font-size: 14px; font-weight: bold;">STANDARD DISCLAIMER<span class="styledisclaimer">:</span></span> <span class="styledisclaimer"><span style="color: #2B2B2B">The material herein is fictional and is intended as<span style="color: #FA060A"> </span>entertainment. </span><span style="color: #2B2B2B"> All characters in the story are fictitious; any similarity to any persons, places, individuals or situations is purely coincidental. The author does not necessarily condone nor endorse any of the activities described in this story.</span></span></span></td>
      </tr>
    <tr>
      <td style="border:2px solid #000A00;"height="25" colspan="3" align="center" bgcolor="#99CC66"><span class="style1"><a href="http://www.A.org/Home_Page.html" class="stylelinks">HOME</a><strong> </strong><span class="stylelinks"><strong>|</strong></span><span class="style4"><span class="style5"> <a href="http://www.A.org/Contact.html" class="stylelinks">CONTACT ME</a></span></span></span></td>
      </tr>
    <tr>
      <td height="">&nbsp;</td>
      <td width="66%" align="left" valign="top"><p>&nbsp;</p>
        <p class="stylesubheader">Story synopsis:</p>
        <p class="stylestoryinfo">Word Count: 0000</p>
        <p class="stylestoryinfo">Published: Xxxx 00 2019</p>
        <hr>
        <p class="stylestoryinfo">&nbsp;</p>
        <p>&nbsp;</p>
        <hr>
        <p align="left" class="stylecontact" style="color: #993300; font-size: 14px;">CONTACT THE AUTHOR</p>
        <span class="stylestory">I'd love to hear what you thought of this story—did you love it, hate it or meh?</span>  Your comments are the only reward an author receives.
        <p align="left" class="stylestory">If you wish to contact me direct then please click here: <a href="mailto:A.org?subject=STORY TITLE">Email Me</a> </p>
        <p align="left" class="stylestory">Or click <a href="https://www.A.org/Home_Page.html">here</a> return to my home page.</p>
        <p align="left" class="stylestory">Or use the  form mail below. If you wish to receive a reply, please include your email address. I reply to all emails.</p>
        <p align="left" class="stylestory">Thanks</p>
        <span class="styleccursive3">Tempest</span><br>
        <br>
<br>
        <p class="stylestory">If you would like to be notified when new stories are published on my website, please click <a href="mailto:A.org?subject=Add My Email Address">here</a> to have your email address adding to my list. I only send out email notifications using the Bcc: option to maintain my readers privacy.</p>
        <hr>
 <div class="commentsform"></div>
            <br>
        <hr>
        <p class="styledisclaimer"> Copyright © 2020 by Tempest. ALL Rights Reserved! This material may <span style="font-weight: bold">NOT</span> be reproduced in any form  without the written permission of the author. <span class="styledisclaimer1">You may download them for your own personal use, but if you wish to post them on other websites, please get my permission beforehand.</span></p></td>
 
    </tr>
  </tbody>
</table>
</html>
 

DW did not do this by itself.

The <html> tag needs to wrap the entire page, right now, your <head> section is outside of it, that's invalid.

The first line of the code needs to be a doctype declaration. The most current would be <!doctype html> which should then be followed immediately by your <html> tag, then the <head> section.

You're also still missing a space between your attributes.

 

Finally, you should also have a set of <body> tags that start immediately after your </head> and end just before the final; </html>

3 replies

Nancy OShea
Community Expert
Community Expert
April 6, 2020

Fixing code errors goes beyond the scope of this product forum.  We're happy to answer your questions about Dreamweaver.  But we can't back you out of careless coding mistakes. 

 

Coding errors are inevitable.  We all make them from time-to-time.  Knowing how to fix your errors is an essential skill.  If you can't do it, you need to review HTML basics.

https://www.w3schools.com/html/html5_intro.asp

 

Nancy O'Shea— Product User & Community Expert
Inspiring
April 7, 2020

Nancy

I hear what you're saying but I'm not the one adding the code errors. I very very rarely work in Code View. I work in Design View. As Ive said before, I set the style of the headings or the body and let DW add the code from my style sheet. Ive fixed all but these four errors in my template (and the two Special Characters must be escaped is most definitely a DW error thinking it's a > greater than symbol) so I'll see what errors DW adds as I paste in the body of my story. Im very careful not to copy directly out of my WP program so as not to copy over any formatting but copy and paste into TextEdit and them copy and paste from their.

Alan

 

BenPleysier
Community Expert
Community Expert
April 7, 2020

Please show all of the code. That way we may be able to replicate the problem.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Nancy OShea
Community Expert
Community Expert
April 6, 2020

Alan,

1. Click in Code view panel.

2. Go to View > Code View Options > tick Line Numbers.

3. There is no option for column numbers & there never has been one.

 

 

Nancy O'Shea— Product User & Community Expert
Inspiring
April 6, 2020

Nancy

Okay, thanks but what's the point of the Validator or the internal DWcode showing the column locations of the errors?

Alan

Jon Fritz
Community Expert
Community Expert
April 6, 2020

It wasn't created by Adobe.

The Validation Window is actually getting its results from the W3C online validation tool.

Community Expert
April 6, 2020

If this is in HTML characters like < have special meanings so if you are writing it so that it reads as "less than", then it should be encoded as &lt; and that will print the less than symbol to the screen.  The same practice goes for SQL statements that some characters need to be escaped in statements.

Inspiring
April 6, 2020

Ben

I'm not using it show less than. They are added automatically by DW. Look at this one which DW said Special Characters must be escaped : [ < ], :
Alan

 

<a href="https://clustrmaps.com/site/1atxb" title="Visit tracker"><img src="//www.clustrmaps.com/map_v2.png?d=T07gSUgrj58GY1mrkExH7SR-PtFW3GiUxWVI4LTUxHg&cl=ffffff" alt="" width="0" height="0"</a>

Community Expert
April 6, 2020

In this example your img tag is not closed with a ">" before your </a> so your markup is generating an error.