Sign in to follow this  
Followers 0
quaizywabbit

How to: add User Defined Keyword[s] to Scite

5 posts in this topic

#1 ·  Posted (edited)

@JDEB

Could you list the steps necessary to create new keyword that has syntax coloring.

For the time being I'd like these keywords to be treated as Block comments

like #cs and #ce ,or as a regular comment ';', but with a different color (to distinguish different types of information in a script.)

this idea would be equivalent to adding syntax categories:

White space

Comment line

Comment block

Number

Function

Keyword

Macro

String

Operator

Variable

Sent Keys

Pre-Processor

Special

Abbrev-Expand

User-defined1 [Comment line functionality-different color]

User-defined2 [Comment block functionality-different color]

etc...

Edited by quaizywabbit

[u]Do more with pre-existing apps![/u]ANYGUIv2.8

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Ever heard of Private Message? Or PM? It's right over there. :whistle: I only point this out considering with the "@JDEB" it looks like you're specifically trying to address him.

Not totally sure what you're looking for, but have a look at the "au3.keywords.properties", and some of the other .properties files as well, in your Scite folder (open it in notepad).

Edited by Saunders

Share this post


Link to post
Share on other sites

I have been trying to do this via properties and api files..

but havent had any luck getting the keyword to colorize.

and I'd rather have the solution (if there is one forthcoming) be posted for all to see.


[u]Do more with pre-existing apps![/u]ANYGUIv2.8

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

@JDEB

Could you list the steps necessary to create new keyword that has syntax coloring.

For the time being I'd like these keywords to be treated as Block comments

like #cs and #ce ,or as a regular comment ';',  but with a different color (to distinguish different types of information in a script.)

this idea would be equivalent to adding syntax categories:

White space

Comment line

Comment block

Number

Function

Keyword

Macro

String

Operator

Variable

Sent Keys

Pre-Processor

Special

Abbrev-Expand

User-defined1 [Comment line functionality-different color]

User-defined2 [Comment block functionality-different color]

etc...

<{POST_SNAPBACK}>

Each new Category will require an update of the LEXAU3.CPP i wrote and is included in SciLexer.Dll supplied in the installer.

Not totally sure what you're looking for, but have a look at the "au3.keywords.properties", and some of the other .properties files as well, in your Scite folder (open it in notepad).

<{POST_SNAPBACK}>

Correct, but it wouldn't be smart to update that because it is refreshed with each update i post .... :whistle: Open in Notepad ???????????????? :dance:

I have been trying to do this via properties and api files..

but havent had any luck getting the keyword to colorize.

and I'd rather have the solution (if there is one forthcoming) be posted for all to see.

<{POST_SNAPBACK}>

API files are used for the AutoComplete dropdown and Calltips, not for syntax coloring. Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Thanks for the explanation Jdeb...I didn't realize that's how it worked..


[u]Do more with pre-existing apps![/u]ANYGUIv2.8

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0