I'm trying to use the Visual InterDev text editor to work with .inc and
.shtml files. The main thing that is still missing is color coding. I find
the .shtml file in my project that I want to edit, but after choosing the
"open with..." command and picking "InterDev Source Code Editor", the file
comes up with black text only, no nice HTML coloring.
Any thoughts on how to get this to work right? I've installed the latest
retail upgrade version.
Thanks!
Dave
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
[Colour-coding INC and SHTML files]
I had the same problem (also with ".js" files)
>Any thoughts on how to get this to work right? I've installed the latest
>retail upgrade version.
I did it with a registry hack, but this is not ideal and I'm not even sure
if it is "correct". Make sure VID is not running, copy the text below and
put it in a file with a "REG" extension, then open it from Windows Explorer.
You should get a message saying the info was merged with the Registry.
Re-start VID and your colour-coding should work. Note that you can add as
many extensions as you want to the end of the list. I have no idea what the
actual DWORD value does, but 28 is the value that all the existing entries
have!
NOTE THAT THE USUAL REGISTRY WARNINGS APPLY!
The annoying thing, though, is that VID insists on using VBScript as the
default syntax highlighting engine. The only way around that is to use a <%@
LANGUAGE %> statement or a <SCRIPT> statement, but of course these cause
errors in #INCLUDE-ed files. The only way around it that I know is to use
the <%@ LANGUAGE %> command, and then remove it when I have finished editing
the file (and get ASP errors from my server! :-) ). Maybe the DWORD has
something to do with this.
Peter
8<--- 8<--- 8<--- Cut here 8<--- 8<--- 8<---
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\6.0\Editors\{C76D83F8-A4
89-11D0-8195-00A0C91BBEE3}\Extensions]
"inc"=dword:00000028
"shtml"=dword:00000028
8<--- 8<--- 8<--- Cut here 8<--- 8<--- 8<---
No luck with this tactic. Did you put any kind of directive or statement at
the top of the shtml or js file? I keep looking.
In article <74pj9e$ngh$1...@reader1.reader.news.ozemail.net>,
-----------== Posted via Deja News, The Discussion Network ==----------