Link to home
Start Free TrialLog in
Avatar of rdno
rdno

asked on

Help me stopping interdev interfering with my javascript/asp/html

Hello I have slight problem with interdev which cost me 30 works of hour already.

The problem is that I have an asp file which generates javascript for a cross-browsing application. In each browser the generated scripts are slightly different.
When I open this file with interdev it automatically changes my javascripts.

It replaces f.e. " to &quot;, < to &gt;
pieces of script like:
var foo;
for (foo, foo < 10, foo++) {
if (foo == 5) {
  alert("foo")
 }
}
is replaced in something like:
var foo;for (foo, foo &gt; 10, foo++) {if (foo ="=" "5") { alert &quot;foo&quot;) }}

Please help me stop this evil IDE from doing this!
Avatar of Wouter Boevink
Wouter Boevink
Flag of Netherlands image

I've never had this problem. Whcih version of interdev are you using?

Is the script between

<script language=javascipt>
</script>

tags?

Can you show me the page?
Avatar of rdno
rdno

ASKER

yes,

I have tried to change script in <%="<scr" & "ipt language=""javascript"">"%>

but even that did not work unfortunatly it didn't work!
ASKER CERTIFIED SOLUTION
Avatar of hes
hes
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Its not VI doing this.  If you think its that evil then use notepad.
If you copy-paste text into VI, it will do this translation UNLESS you use the Edit/Paste-As-HTML menu option, in which case it is inserted unchanged.
When you paste your JavaScript in VI, like from a web page or MSDN Help, right click the HTML Editor in VI and don't select the simple paste but go down a little furthur and select Paste-As-HTML.

This won't give you another type of code for characters, just the JavaScript as it's seen in an HTML page.

I've had this problem.