Jump to content


Photo

SciTE Styles


  • Please log in to reply
14 replies to this topic

#1 budRich

budRich
  • Members
  • 24 posts

Posted 09 August 2011 - 06:01 PM

One of the best new features in SciTE v3 is that it's really easy to maintain many different styles.


"Go to My Documents\AutoHotkey\SciTE\Styles, fork whichever style you want to use as a base and give it a name like this: Something.style.properties. Open it with SciTE and you're ready to edit it. When you want to test it, go to Tools>SciTE4AutoHotkey settings in order to change the current style to yours." - fincs

(If you have a portable version, place the styles in SciTE folder\user\Styles)

If you installed HatOfGod or tidRich_Zenburn before August 10, please update your styles.
It worked fine for ahk files, but when you looked at other filetypes the background turned white. That is now fixed.

HatOfGod updated: 2011-08-19
Posted Image

HatOfGod.style.properties
# HatOfGod - A happydark theme
# 
# Made by budRich based on tidRich_Zenburn
# Use it, change it, sell it. I don't care.
#
# Update: 
# 2011-08-19
#  Added Output pane styling.
#
# 2011-08-10 
#  Stole the top part from nimdAHK's post, thanks mate!
#  Added global default style. Now other filetypes except AHK looks goodie.
#  Last lines are styles for ini and properties files.
#
# Check out the SciTE Styles forum thread. 
# http://www.autohotkey.com/forum/viewtopic.php?t=75188

# Global default styles for all languages
style.*.32=fore:#CCCCCC,back:#000000,font:Bitstream Vera Sans Mono,size:12

# Caret
caret.fore=#FFFFFF
caret.line.back=#151515

# Selection
# 00005e BSoD blue. 
selection.back=#00005e
selection.fore=#FFFFFF

# Line number
style.*.33=fore:#E4E4E4,back:#333333,$(font.base)

# Fold Margin
fold.margin.colour=#222222
fold.margin.highlight.colour=#222222

# Output pane
style.errorlist.32=back:#111111,fore:#ff0000,font:Bitstream Vera Sans Mono,size:11
style.errorlist.4=fore:#BBBBBB

# Output pane ???
style.errorlist.1=fore:#0000AA,bold
style.errorlist.3=fore:#F00000,bold
style.errorlist.10=fore:#007F00
style.errorlist.11=fore:#00007F
style.errorlist.12=fore:#007F7F
style.errorlist.13=fore:#7F0000

# Ahk only

# Base (background, base font)
#~ style.ahk1.32=back:#000000,font:Bitstream Vera Sans Mono 

# Default (everything not below: spaces, untyped parameters)
style.ahk1.0=fore:#CBCBAB,bold

# Line comment (; syntax)
style.ahk1.1=fore:#888888,italics

# Block comment (/*...*/ syntax)
style.ahk1.2=fore:#BBBBBB

# Escape (`x)
style.ahk1.3=fore:#789EC6,bold

# Operator
style.ahk1.4=fore:#97C0EB,bold

# Expression assignement operator
style.ahk1.5=fore:#F09EC0,bold

# String
style.ahk1.6=fore:#BBBBBB,bold

# Number
style.ahk1.7=fore:#FD971F,bold

# Identifier (variable & function call)
# Not used by the lexer but by the style below and by hotkeys
style.ahk1.8=fore:#93CCB8

# Variable dereferencing %varName%
style.ahk1.9=$(style.ahk1.8),back:#000000,bold

# Label & Hotstrings (& Function definition?). Also defines a bit of style for hotkeys.
style.ahk1.10=fore:#C23669

# Keyword - Flow of control
style.ahk1.11=fore:#A6E22E,bold,italics


# Keyword - Commands
style.ahk1.12=fore:#F79B57,bold

# Keyword - Functions
style.ahk1.13=fore:#7CC8CF,italics

# Keyword - Directives
style.ahk1.14=fore:#7CC8CF,bold,italics

# Keyword - Keys & buttons
style.ahk1.15=fore:#CB8DD9,bold

# Keyword - Built-in Variables
style.ahk1.16=fore:#FF2679,bold,italics

# Keyword - special parameters ("Keywords")
style.ahk1.17=fore:#FFE000

# Keyword - User defined
style.ahk1.18=fore:#0000FF,bold

# Variable keyword (built-in) dereferencing %A_xxx%
style.ahk1.19=$(style.ahk1.16),back:#000000

# Error (unclosed string, unknown operator, invalid dereferencing, etc.)
style.ahk1.20=back:#111111,fore:#ff0000

# .ini and .properties files

# Default
style.props.0=$(style.ahk1.0)

# Comment
style.props.1=$(style.ahk1.1)

# Section
style.props.2=$(style.ahk1.10),eolfilled

# Assignment operator
style.props.3=$(style.ahk1.5)

# Key
style.props.5=$(style.ahk1.8)




StylePreview.ahk (OBS! Don't run this. It's not a script, it's only to preview styles. And it have to be named *.ahk, otherwise the style will not apply)
;Default (everything not below: spaces, untyped parameters)
Allan med ballan från halland

;Line Comment

/* Block Comment
*/

;Escape
`E

;Operators, logical connectives, etc.
+= -= *= /= := 

;Expression assignement operator
//= .= |= &= ^= >>= <<=  = == != <> && || ?: < <= > >= ** & // << >> & | ^ ! 

;String
"Heavy Metal is the Law!"

;Number
666

;Identifier (variable & function call)
%StonerRock%

;Label & Hotstrings (& Function definition?). Also defines a bit of style for hotkeys.
Heavy:

;Keyword - Flow of control
global if else loop return If Ifequal Ifexist Ifgreater Ifgreaterorequal Ifinstring 

;Keyword - Commands
Autotrim Blockinput Clipwait Control Controlclick Controlfocus Controlget 
 

;Keyword - Functions
_Addref _Clone _Getaddress _Getcapacity _Haskey _Insert _Maxindex _Minindex _Newenum 
 

;Variable keyword (built-in) dereferencing %A_xxx%
list%A_Index%

;Keyword - Directives
#Hotstring #IfWinActive #IfWinExist #Include #InstallKeybdHook #InstallMouseHook #KeyHistory

;Keyword - Keys & buttons
Wheeldown Wheelleft Wheelright Wheelup Xbutton1 Xbutton2 Click


;Keyword - Built-in Variables
A_AhkVersion A_AppData A_AppDataCommon A_AutoTrim A_BatchLines A_CaretX A_CaretY 

;Keyword - special parameters ("Keywords")
Abort Add ahk_class ahk_group ahk_id ahk_pid All Alnum Alpha AltSubmit AltTab 

;Error (unclosed string, unknown operator, invalid dereferencing, etc.)
"asdlkjasd

The font, Bitstream Vera Sans Mono, is free and great, download it from:
http://ftp.gnome.org...m-vera-1.10.zip

Please feel free to use this thread to share your own styles.

#2 budRich

budRich
  • Members
  • 24 posts

Posted 09 August 2011 - 07:10 PM

tidbit showed me a screenshot of his npp in action on irc. I begged him to give me the colors, he did and i ported it to SciTE.

tidRich_Zenburn
Posted Image
tidRich_Zenburn.style.properties
# tidRich_Zenburn - Made by chat.
# Zenburn, tweaked by tidbit ported to SciTE by budRich
#
# Update: 2011-08-10 
#  Stole the top part from nimdAHK's post, thanks mate!
#  Added global default style. Now other filetypes except AHK looks goodie.
#  Last lines are styles for ini and properties files.
#
# Check out the SciTE Styles forum thread. 
# http://www.autohotkey.com/forum/viewtopic.php?t=75188

# Global default styles for all languages
style.*.32=fore:#CCCCCC,back:#3F3F3F,font:Bitstream Vera Sans Mono,size:12

# Caret
caret.fore=#FFFFFF
caret.line.back=#444444

# Selection
# 00005e BSoD blue. 
selection.back=#00005e
selection.fore=#FFFFFF

# Line number
style.*.33=fore:#E4E4E4,back:#333333,$(font.base)

# Fold Margin
fold.margin.colour=#222222
fold.margin.highlight.colour=#222222
 
# Base (background, base font)
style.ahk1.32=back:#3F3F3F
 
# Default (everything not below: spaces, untyped parameters)
style.ahk1.0=fore:#EDEDCD,bold
 
# Line comment (; syntax)
style.ahk1.1=fore:#7F9F7F,italics
 
# Block comment (/*...*/ syntax)
style.ahk1.2=fore:#7F9F7F,italics
 
# Escape (`x)
style.ahk1.3=fore:#93CCB8,bold
 
# Operator
style.ahk1.4=fore:#97C0EB,bold
 
# Expression assignement operator
style.ahk1.5=fore:#97C0EB,bold
 
# String
style.ahk1.6=fore:#CC9893,bold
 
# Number
style.ahk1.7=fore:#F79B57,bold
 
# Identifier (variable & function call)
# Not used by the lexer but by the style below and by hotkeys
style.ahk1.8=fore:#93CCB8
 
# Variable dereferencing %varName%
style.ahk1.9=$(style.ahk1.8)
 
# Label & Hotstrings (& Function definition?). Also defines a bit of style for hotkeys.
style.ahk1.10=fore:#F09EC0
 
# Keyword - Flow of control
style.ahk1.11=fore:#E4EDED,bold,italics
 
 
# Keyword - Commands
style.ahk1.12=fore:#CDBFA3,bold
 
# Keyword - Functions
style.ahk1.13=fore:#7CC8CF,italics
 
# Keyword - Directives
style.ahk1.14=fore:#7CC8CF,bold,italics
 
# Keyword - Keys & buttons
style.ahk1.15=fore:#CB8DD9,bold
 
# Keyword - Built-in Variables
style.ahk1.16=fore:#000080,bold,italics
 
# Keyword - special parameters ("Keywords")
style.ahk1.17=fore:#E4EDED
 
# Keyword - User defined
style.ahk1.18=fore:#0000FF,bold
 
# Variable keyword (built-in) dereferencing %A_xxx%
style.ahk1.19=$(style.ahk1.16)
 
# Error (unclosed string, unknown operator, invalid dereferencing, etc.)
style.ahk1.20=back:#111111,fore:#ff0000

# .ini and .properties files

# Default
style.props.0=$(style.ahk1.0)

# Comment
style.props.1=$(style.ahk1.1)

# Section
style.props.2=$(style.ahk1.10),eolfilled

# Assignment operator
style.props.3=$(style.ahk1.5)

# Key
style.props.5=$(style.ahk1.8)


#3 nimda

nimda
  • Members
  • 4301 posts

Posted 09 August 2011 - 07:29 PM

Modification of Talisman2's excellent style:
# Caret
caret.fore=#FFFFFF
caret.line.back=#333333

# Selection
# selection.back=#00005e
# selection.fore=#FFFFFF

# Line number
style.*.33=fore:#E4E4E4,back:#333333,$(font.base)

# Fold Margin
fold.margin.colour=#222222
fold.margin.highlight.colour=#222222

# Base (background, base font)
style.ahk1.32=fore:#FFFFFF,back:#030003,font:Courier New

# Default (everything not below: spaces, untyped parameters)
style.ahk1.0=fore:#FFFFFF,fore:#8f8f8f,bold

# Line comment (; syntax)
style.ahk1.1=fore:#ff7fff,italics

# Block comment (/*...*/ syntax)
style.ahk1.2=fore:#bf9fbf,italics

# Escape (`x)
style.ahk1.3=fore:#007fff,bold

# Operator
style.ahk1.4=fore:#80dff0,bold

# Expression assignement operator
style.ahk1.5=fore:#00a0cc

# String
style.ahk1.6=fore:#505050

# Number
style.ahk1.7=fore:#d0b080,bold

# Identifier (variable & function call)
# Not used by the lexer but by the style below and by hotkeys
style.ahk1.8=fore:#30D0F0

# Variable dereferencing %varName%
style.ahk1.9=$(style.ahk1.8),back:#1B001B,bold

# Label & Hotstrings (& Function definition?). Also defines a bit of style for hotkeys.
style.ahk1.10=fore:#FFFFFF,back:#222288

# Keyword - Flow of control
style.ahk1.11=fore:#B7FFB7,bold,italics

# Keyword - Commands
style.ahk1.12=fore:#DDDDDD,bold

# Keyword - Functions
style.ahk1.13=fore:#F07F70,italics

# Keyword - Directives
style.ahk1.14=fore:#0FBFDF,bold,italics

# Keyword - Keys & buttons
style.ahk1.15=fore:#00FF00,bold

# Keyword - Built-in Variables
style.ahk1.16=fore:#228B22,bold,italics

# Keyword - special parameters ("Keywords")
style.ahk1.17=fore:#FFFF00

# Keyword - User defined
style.ahk1.18=fore:#7FFFDF,bold

# Variable keyword (built-in) dereferencing %A_xxx%
style.ahk1.19=$(style.ahk1.16),back:#060600

# Error (unclosed string, unknown operator, invalid dereferencing, etc.)
style.ahk1.20=back:#003F3F

Mod of Hat of God: (darkened, changed line numbers)
# HatOfGod - A happydark theme
# Made by budRich based on tidRich_Zenburn
# Use it, change it, sell it. I don't care.
# 2011-08-08


# Line number
style.*.33=fore:#E4E4E4,back:#333333,$(font.base)

# Fold Margin
fold.margin.colour=#222222
fold.margin.highlight.colour=#222222

# The current line
caret.line.back=#202020

# Base (background, base font)
# font changed from Bitstream vera sans mono by nimda
style.ahk1.32=back:#000000,font:Courier New

# Default (everything not below: spaces, untyped parameters)
style.ahk1.0=fore:#FFFFFF,fore:#8f8f8f,bold

# Line comment (; syntax)
style.ahk1.1=fore:#888888,italics

# Block comment (/*...*/ syntax)
style.ahk1.2=fore:#BBBBBB

# Escape (`x)
style.ahk1.3=fore:#789EC6,bold

# Operator
style.ahk1.4=fore:#97C0EB,bold

# Expression assignement operator
style.ahk1.5=fore:#F09EC0,bold

# String
style.ahk1.6=fore:#BBBBBB,bold

# Number
style.ahk1.7=fore:#FD971F,bold

# Identifier (variable & function call)
# Not used by the lexer but by the style below and by hotkeys
style.ahk1.8=fore:#93CCB8

# Variable dereferencing %varName%
style.ahk1.9=$(style.ahk1.8),back:#000000,bold

# Label & Hotstrings (& Function definition?). Also defines a bit of style for hotkeys.
style.ahk1.10=fore:#C23669

# Keyword - Flow of control
style.ahk1.11=fore:#B7FFB7,bold,italics


# Keyword - Commands
style.ahk1.12=fore:#F79B57,bold

# Keyword - Functions
style.ahk1.13=fore:#7CC8CF,italics

# Keyword - Directives
style.ahk1.14=fore:#7CC8CF,bold,italics

# Keyword - Keys & buttons
style.ahk1.15=fore:#CB8DD9,bold

# Keyword - Built-in Variables
style.ahk1.16=fore:#FF2679,bold,italics

# Keyword - special parameters ("Keywords")
style.ahk1.17=fore:#FFE000

# Keyword - User defined
style.ahk1.18=fore:#0000FF,bold

# Variable keyword (built-in) dereferencing %A_xxx%
style.ahk1.19=$(style.ahk1.16),back:#000000

# Error (unclosed string, unknown operator, invalid dereferencing, etc.)
style.ahk1.20=back:#111111,fore:#ff0000


#4 tomoe_uehara

tomoe_uehara
  • Members
  • 2073 posts

Posted 10 August 2011 - 06:54 AM

Yes!! More dark theme for SciTE Posted Image

#5 budRich

budRich
  • Members
  • 24 posts

Posted 10 August 2011 - 04:45 PM

Hello all you dark style lovers, I've made a dark css for the autohotkey help file: <!-- m -->http://www.autohotke... ... 631#465631<!-- m -->

#6 tidbit

tidbit
  • Moderators
  • 2282 posts

Posted 10 August 2011 - 06:16 PM

thanks for the effort, budRich :)

here is a tweak which mostly matches my NP++ theme. scite allows more options so I had to think of some extra colors (they don't really match :p but they help make things stand out).

screenshot
# tidRich_Zenburn - Made by chat. 
# Zenburn, tweaked by tidbit ported to SciTE by budRich 
# 
# Update: Wed August 10, 2011 (tidbit)
#  Stole the top part from nimdAHK's post, thanks mate! 
#  Added global default style. Now other filetypes except AHK looks goodie. 
#  Last lines are styles for ini and properties files. 
# 
# Check out the SciTE Styles forum thread. 
# http://www.autohotkey.com/forum/viewtopic.php?t=75188 

# Global default styles for all languages 
style.*.32=fore:#CCCCCC,back:#3F3F3F,font:DejaVu Sans Mono,size:12 

# Caret 
caret.fore=#FFFFFF 
caret.line.back=#101010 

# Selection 
# 00005e BSoD blue. 
selection.back=#606060 
selection.fore=#EFEFEF 

# Line number 
style.*.33=fore:#E4E4E4,back:#333333,$(font.base) 

# Fold Margin 
fold.margin.colour=#222222 
fold.margin.highlight.colour=#222222 
  
# Base (background, base font) 
style.ahk1.32=back:#3F3F3F 
  
# Default (everything not below: spaces, untyped parameters) 
style.ahk1.0=fore:#EDEDE4 
  
# Line comment (; syntax) 
style.ahk1.1=fore:#7F9F7F,italics 
  
# Block comment (/*...*/ syntax) 
style.ahk1.2=fore:#7F9F7F,italics 
  
# Escape (`x) 
style.ahk1.3=fore:#93CCB8 
  
# Operator 
style.ahk1.4=fore:#EBC0A7,bold 
  
# Expression assignement operator 
style.ahk1.5=fore:#EBC0A7,bold 
  
# String 
style.ahk1.6=fore:#9398CC,underlined
  
# Number 
style.ahk1.7=fore:#F79B57,bold 
  
# Identifier (variable & function call) 
# Not used by the lexer but by the style below and by hotkeys 
style.ahk1.8=fore:#93CCB8 
  
# Variable dereferencing %varName% 
style.ahk1.9=fore:#B8CC93 
  
# Label & Hotstrings (& Function definition?). Also defines a bit of style for hotkeys. 
style.ahk1.10=fore:#F09EC0 
  
# Keyword - Flow of control 
style.ahk1.11=fore:#D9C18C,bold,italics 
  
# Keyword - Commands 
style.ahk1.12=fore:#D9C18C 
  
# Keyword - Functions 
style.ahk1.13=fore:#EDEDE4,italics 
  
# Keyword - Directives 
style.ahk1.14=fore:#d1885c,bold,italics 
  
# Keyword - Keys & buttons 
style.ahk1.15=fore:#CB8DD9,bold 
  
# Keyword - Built-in Variables 
style.ahk1.16=fore:#B8CC93,italics 
  
# Keyword - special parameters ("Keywords") 
style.ahk1.17=fore:#D3E5DE 
  
# Keyword - User defined 
style.ahk1.18=fore:#0000FF,bold 
  
# Variable keyword (built-in) dereferencing %A_xxx% 
style.ahk1.19=fore:#B8CC93,bold,italics 
  
# Error (unclosed string, unknown operator, invalid dereferencing, etc.) 
style.ahk1.20=back:#111111,fore:#ff0000 

# .ini and .properties files 

# Default 
style.props.0=fore:#EDEDE4

# Comment 
style.props.1=$(style.ahk1.1) 

# Section 
style.props.2=$(style.ahk1.10),eolfilled 

# Assignment operator 
style.props.3=$(style.ahk1.5) 

# Key 
style.props.5=$(style.ahk1.8)


#7 budRich

budRich
  • Members
  • 24 posts

Posted 10 August 2011 - 08:52 PM

No problem tidbit. This is such a great community, it feels great to give something back. And with your final tweaks on tidRich_Zenburn are great. The dark blue color in mine did look bad on grey bg.

I really recommend this version before the one in my post.

#8 tomoe_uehara

tomoe_uehara
  • Members
  • 2073 posts

Posted 11 August 2011 - 12:36 AM

Very nice!
Now every time I reinstall my SciTE, I'll copy for the theme from here.


#9 nimda

nimda
  • Members
  • 4301 posts

Posted 11 August 2011 - 12:43 AM

You can put the style in %A_MyDocuments%\AutoHotkey\SciTe\Styles and it shouldn't overwrite :?:

#10 budRich

budRich
  • Members
  • 24 posts

Posted 19 August 2011 - 05:28 PM

Updated HatOfGod, it now features output pane styling. In the next update i thought i'll post an archive file with all the styles in this thread, and i'll add Output,Linenumber,and default style to the styles that doesn't include it.

If you've posted a style in this thread and don't want it included in the archive, please say: nej.

#11 fincs

fincs
  • Fellows
  • 1529 posts

Posted 19 August 2011 - 06:57 PM

Ok, I just integrated these styles into SciTE4AutoHotkey. I changed the font size from 12 to 9 in both styles to make them look right with the default zoom setting.

#12 tomoe_uehara

tomoe_uehara
  • Members
  • 2073 posts

Posted 20 August 2011 - 09:30 AM

Horray! Now I can stare at the SciTE4AutoHotkey all the time without tears 8)

#13 budRich

budRich
  • Members
  • 24 posts

Posted 20 August 2011 - 11:44 AM

fincs: Wow, that's great.

#14 Werner_ML

Werner_ML
  • Members
  • 6 posts

Posted 24 November 2011 - 01:46 AM

SIMPLY, AMAZING!!!
now i'm not going blind!!!!
thanks!

I have one question only, (maybe here is not the right topic)

- How do I configure SciTE4AutoHotkey Indentation and TabSize?

The problem is, I have already edited the "SciTEGlobal.properties", (in the SciTE4AutoHotkey folder):

tabsize=4 (changed to "2")
indent.size=2 (also changed to "2")

and additionally, I pasted this two lines in "\Documents\AutoHotkey\SciTE\SciTEUser.properties"

but every time I reopen a script, or reopen SciTE, it changes back to "4"...

#15 Person93

Person93
  • Members
  • 369 posts

Posted 09 February 2013 - 10:35 PM

Is there a way to make multiple file extension use the same Scite language?

 

I created a file extension ".part" and I want it to show up in Scite the same way that AutoHotkey scripts do.

 

I use this file extension for pieces of scripts that are meant to be included in other scripts but cannot run on their own.