Jump to content

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


Recommended Posts

@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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Developers

@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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...