Sign in to follow this  
Followers 0
Uten

SciTe wsc.properties file

2 posts in this topic

I have been fideling with ptrex wsc samples lately and found the need for a wsc.properties file in scite.

The config file is the result of collecting bits and pieces from here and there. But the files from this page became really handy.

To enable it you probably would have to configure your SciTEGlobal.properties file and enable or add the following lines in appropriate places. I use my own SciTE setup so your SciTE4AutoIt3 setup might look slightly different.

Bold tags did not work in the following config samples so you will have to search for wsc.

source.files=... *.xml;*.iface;*.bat;*.e;\
*.wsc

$(filter.verilog)\
$(filter.vhdl)\
$(filter.wsc)

#&YAML|yaml||\
&wsc|wsc||\
&wsh|wsh||

#import verilog
#import vhdl
import wsc

wsc.properties file:

file.patterns.wsc=*.wsc
# wsc: Windows Script Classes
# NOTE: The lexer has to exists in SciTE. 
lexer.$(file.patterns.wsc)=hypertext

# All hypertext elements and attributes must be listed in lower case
hypertext.elements=\
comment component description get implements job language method object package \
parameter registration resource script usage method property public

hypertext.attributes=\
classid debug encoding id language name progid src type version

keywordclass.hypertext=\
$(hypertext.elements) $(hypertext.attributes) public !doctype

comment.stream.start.wsc=<!--
comment.stream.end.wsc=-->

use.monospaced=1
#caret.width=3

#RESOURCE: http://en.wikipedia.org/wiki/X11_color_names
#RESOURCE: http://en.wikipedia.org/wiki/List_of_colors
COL_AQUA=#00FFFF
COL_AZURE=#F0FFFF
COL_BEIGE=#F5F5DC
COL_BLACK=#000000
COL_BLUE=#0000FF
COL_BLUEVIOLET=#8A2BE2
COL_BROWN=#A52A2A
COL_CORAL=#FF7F50
COL_CORNSILK=#FFF8DC
COL_CYAN=#00FFFF
COL_DARKBLUE=#00008B
COL_DARKCYAN=#008B8B
COL_DARKGREY=#A9A9A9
COL_DARKGRTEEN=#006400
COL_DARKMAGENTA=#8B008B
COL_DARKORANGE=#FF3200
COL_DEEPPINK=#FF1493
COL_FORESTGREEN=#228B22
COL_GOLD=#FFD700
COL_INDIGO=#4B0082
COL_MAGENTA=#FF00FF
COL_MARONE=#800000
COL_NAVYBLUE=#000080
COL_OLIVE=#808000
COL_ORANGE=#FFA500
COL_ORANGERED=#FF4500
COL_RED=#FF0000
COL_WHITE=#FFFFFF
COL_WHITESMOKE=F5F5F5
COL_YELLOW=#FFFF00

COL_TEAL=#008080
COL_PURPLE=#800080
COL_AU3COMMENT=#009933
#caret.fore=#FFFFFF
caret.fore=$(BLACK)

# Text 
style.hypertext.0=fore:$(COL_BLACK),$(font.text)
# Tags BOLD
style.hypertext.1=fore:$(COL_NAVYBLUE),bold
# Unknown Tags
style.hypertext.2=fore:$(COL_RED)
# Attributes BOLD
style.hypertext.3=fore:$(COL_TEAL),bold
# Unknown Attributes
style.hypertext.4=fore:$(COL_RED)
# Numbers
style.hypertext.5=$(colour.number)
# Double quoted strings
style.hypertext.6=$(colour.string)
# Single quoted strings
style.hypertext.7=$(colour.string)
# Other inside tag
style.hypertext.8=fore:$(COL_PURPLE)
# Comment
style.hypertext.9=fore:$(COL_AU3COMMENT),$(font.text.comment)
# Entities
style.hypertext.10=fore:$(COL_PURPLE),$(font.text)


#command.go.$(file.patterns.php)=php -f "$(FileNameExt)"
command.compile.$(file.patterns.php)=regsvr32 "$(FileNameExt)"

Happy coding..:P

Share this post


Link to post
Share on other sites



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