HighDots Forums  

ASP Syntax Highlighting Disappears

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss ASP Syntax Highlighting Disappears in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gabe111
 
Posts: n/a

Default ASP Syntax Highlighting Disappears - 10-25-2005 , 07:25 PM






When I initially create an ASP VBScript page in Dreamweaver 8, the syntax
highlighting works fine. If I then close the file and reopen it, the ASP
syntax coloring basically goes away. It becomes just light and dark blue.
This doesn't appear to be happening in any other document types (PHP, CFM,
etc...). Is there any way to stop this from happening?


Reply With Quote
  #2  
Old   
Randy Edmunds
 
Posts: n/a

Default Re: ASP Syntax Highlighting Disappears - 10-26-2005 , 11:06 AM






Gabe,

The main purpose of syntax highlighting is to you can easily see when
the syntax of a page is not correct. It's not just to look pretty!

First, trace the incorrect coloring backwards to where it starts to make
sure that there is not a syntax error on your page.

Second, the problem may be because DW thinks it is an ASP JScript or
HTML page. The first thing DW looks for is the .asp file extension. Then
it looks for the @PAGE directive at the top of the page. After that it
looks at the default Server Model for your Site. If the page is not in a
site, then it should default to ASP VBScript, unless you have manually
altered the default documenttype definitions or Server Model definitions
(i.e. the CanRecognizeDocument() function).

Hope this helps,
Randy


Quote:
When I initially create an ASP VBScript page in Dreamweaver 8, the syntax
highlighting works fine. If I then close the file and reopen it, the ASP
syntax coloring basically goes away. It becomes just light and dark blue.
This doesn't appear to be happening in any other document types (PHP, CFM,
etc...). Is there any way to stop this from happening?



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.