Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

SciTE Styles


  • Please log in to reply
14 replies to this topic
budRich
  • Members
  • 146 posts
  • Last active: Aug 03 2015 08:33 PM
  • Joined: 09 Aug 2011
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.

budRich
  • Members
  • 146 posts
  • Last active: Aug 03 2015 08:33 PM
  • Joined: 09 Aug 2011
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)


nimda
  • Members
  • 4368 posts
  • Last active: Aug 09 2015 02:36 AM
  • Joined: 26 Dec 2010
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


tomoe_uehara
  • Members
  • 2166 posts
  • Last active: Jun 11 2015 05:33 PM
  • Joined: 05 Sep 2009
Yes!! More dark theme for SciTE Posted Image

budRich
  • Members
  • 146 posts
  • Last active: Aug 03 2015 08:33 PM
  • Joined: 09 Aug 2011
Hello all you dark style lovers, I've made a dark css for the autohotkey help file: <!-- m -->http://www.autohotke... ... 631#465631<!-- m -->

tidbit
  • Administrators
  • 2709 posts
  • Hates playing Janitor
  • Last active: Jan 15 2016 11:37 PM
  • Joined: 09 Mar 2008
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)

rawr. be very afraid
*poke*
. Populate the AutoHotkey city. Pointless but somewhat fun. .


budRich
  • Members
  • 146 posts
  • Last active: Aug 03 2015 08:33 PM
  • Joined: 09 Aug 2011
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.

tomoe_uehara
  • Members
  • 2166 posts
  • Last active: Jun 11 2015 05:33 PM
  • Joined: 05 Sep 2009
Very nice!
Now every time I reinstall my SciTE, I'll copy for the theme from here.


nimda
  • Members
  • 4368 posts
  • Last active: Aug 09 2015 02:36 AM
  • Joined: 26 Dec 2010
You can put the style in %A_MyDocuments%\AutoHotkey\SciTe\Styles and it shouldn't overwrite :?:

budRich
  • Members
  • 146 posts
  • Last active: Aug 03 2015 08:33 PM
  • Joined: 09 Aug 2011
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.

fincs
  • Moderators
  • 1662 posts
  • Last active:
  • Joined: 05 May 2007
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.

tomoe_uehara
  • Members
  • 2166 posts
  • Last active: Jun 11 2015 05:33 PM
  • Joined: 05 Sep 2009
Horray! Now I can stare at the SciTE4AutoHotkey all the time without tears 8)

budRich
  • Members
  • 146 posts
  • Last active: Aug 03 2015 08:33 PM
  • Joined: 09 Aug 2011
fincs: Wow, that's great.

Werner_ML
  • Members
  • 14 posts
  • Last active: Oct 10 2019 07:41 PM
  • Joined: 06 Jun 2011
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"...

Person93
  • Members
  • 443 posts
  • Last active: Feb 11 2014 12:07 AM
  • Joined: 26 Jan 2012

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.