Page 1 of 1

Standard vor Syntax-High.

Posted: Tue Feb 27, 2001 2:49 pm
by Roland
How can i Setup to use asp-systax as Standard. I open a New File and every time html is the Standard-Syntax.
I don't use Workspace because it is no project, the files are in the over different directories.
Or it is possible to create a ShortCut for this Menue ?

Thanks Roland

Re: Standard vor Syntax-High.

Posted: Tue Feb 27, 2001 3:54 pm
by Frank Fesevur
If I understand your question correct, you need to remove the *.ASP from the HTML document type. After that add a new document type for ASP, with the ASP syntax highlighting.

Frank

Re: Standard vor Syntax-High.

Posted: Tue Feb 27, 2001 4:06 pm
by Roland
Hy thanks, no i think so.
You start TexPad - open an ASP-File. Syntax highlighting is HTML. You change the (in View --> Document Properties) Syntax highlighting to ASP. Close Texpad.
You start TexPad again - open an ASP-File. Syntax highlighting is again HTML.
Why is HTML-highlighting Standard ?

Thanks Roland

Re: Standard vor Syntax-High.

Posted: Wed Feb 28, 2001 8:51 am
by Frank Fesevur
That is normal! The properties you change with View --> Document Properties (or right mouse -> Properties) are only changed during that session.

If you want ASP to have its own syntax definition, you need to add an extra entry (as I described above).

Frank

Re: Standard vor Syntax-High.

Posted: Wed Feb 28, 2001 9:06 am
by Roland
Sorry, thats no way. !?
The solution for Next Version !
One Checkbox in View --> Document Properties "USE this syntax as as standard"
or this checkbox in Configuration - Preferences !

Bye Roland

Re: Standard vor Syntax-High.

Posted: Wed Feb 28, 2001 12:56 pm
by moderator
Hi Roland

You can already save the settings for an individual document if you save the file in a workspace (file menu).

Kind Regards

Heidi-Marie

Re: Standard vor Syntax-High.

Posted: Wed Feb 28, 2001 1:57 pm
by Roland
Yes all settings are saved in a workspace but not: View --> Document Properties --> Syntax.

Syntax highlighting DEFAULT as asp.syn for a document no !

Roland

Re: Standard vor Syntax-High.

Posted: Wed Feb 28, 2001 2:04 pm
by Dave Sparks
Hi Roland,

I think you want the ASP syntax highlighting to be used everytime you open a file with the ASP extension.

To do this you have to add a new document class for ASP files:

Close all documents
Configure-->New Document Class
Type in the Document class name e.g ASP
Click Next-->
Type in the Class members e.g *.asp, *.asa
Click Next-->
Check the Enable syntax highlighting and select asp3.syn from the dropdown list
Click Next-->Finish

Alternatively you can do the same from the
Configure-->Preferences

You can also change the syntax highlighting for the default document class here. This will cause all new files which do not yet have an extension to use this syntax highlighting

See http://www.textpad.com/support/conffaq.html#newclass for a full description

Re: Standard vor Syntax-High.

Posted: Wed Feb 28, 2001 3:03 pm
by Roland
OK - Fine thats it - works fine :-)
http://www.textpad.com/support/conffaq.html#newclass

OK Thanks bye
and great for - Germnay

Re: Standard vor Syntax-High.

Posted: Thu Mar 01, 2001 7:04 am
by Andreas
Hi Roland,

this is what Frank Fesevur suggested. He just did not list it step for step.

Andreas