Standard vor Syntax-High.

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Roland

Standard vor Syntax-High.

Post 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
Frank Fesevur

Re: Standard vor Syntax-High.

Post 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
Roland

Re: Standard vor Syntax-High.

Post 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
Frank Fesevur

Re: Standard vor Syntax-High.

Post 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
Roland

Re: Standard vor Syntax-High.

Post 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
moderator

Re: Standard vor Syntax-High.

Post 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
Roland

Re: Standard vor Syntax-High.

Post 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
Dave Sparks

Re: Standard vor Syntax-High.

Post 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
Roland

Re: Standard vor Syntax-High.

Post by Roland »

OK - Fine thats it - works fine :-)
http://www.textpad.com/support/conffaq.html#newclass

OK Thanks bye
and great for - Germnay
Andreas

Re: Standard vor Syntax-High.

Post by Andreas »

Hi Roland,

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

Andreas
Post Reply