Jump to content

SciTE Config - Syntax Color Question


xiantez
 Share

Recommended Posts

Hey Community,

I was changing around my color scheme manually for syntax highlighting. I really enjoy using a dark background color. However, this seems to be problematic because my blinking cursor is also very dark. Is there a setting in the ScITE config where I can manipulate the blinking cursor to be a different color like "white" so it is easy to spot when coding. The closest thing I found was "Caret Line Color", but this just changes the line highlight.  Your help is greatly appreciated!!

ScITE config.png

Link to comment
Share on other sites

not sure how to do what you asked, but if it helps, at the very bottom bar of the SciTE window frame it shows the position (line and column) of the cursor.

ex. li=31 co=74

If @error Then
    MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!")
EndIf

"Yeah yeah yeah patience, how long will that take?"  -Ed Gruberman

REAL search results  |  SciTE4AutoIt3 Editor Full Version

Link to comment
Share on other sites

1 hour ago, InunoTaishou said:

Hey InunoTaishou,

Thanks for the advice.... I have never used the ISN AutoIt Studio, what are some of the key benefits of this application? Also, I grabbed your code for the theme.... I am not sure where I need to apply it though....

 

 

scripteditor_font=Consolas
scripteditor_size=10
scripteditor_bgcolour=0x1F1F1F
scripteditor_rowcolour=0x585858
scripteditor_marccolour=0xFFFFFF
scripteditor_highlightcolour=0x3C9BFF
treefont_font=Segoe UI
treefont_size=9
treefont_colour=0x000000
default_font=Segoe UI
default_font_size=9
AU3_DEFAULT_STYLE1=0xC8C8C8|0x1F1F1F|0|0|0
AU3_DEFAULT_STYLE2=0xC8C8C8|0x1F1F1F|0|0|0
AU3_COMMENT_STYLE1=0x23BC4C|0x1F1F1F|0|1|0
AU3_COMMENT_STYLE2=0x23BC4C|0x1F1F1F|0|0|0
AU3_COMMENTBLOCK_STYLE1=0x23BC4C|0x1F1F1F|0|1|0
AU3_COMMENTBLOCK_STYLE2=0x23BC4C|0x1F1F1F|0|0|0
AU3_NUMBER_STYLE1=0xB5CEA8|0x1F1F1F|1|1|0
AU3_NUMBER_STYLE2=0xB5CEA8|0x1F1F1F|1|0|0
AU3_FUNCTION_STYLE1=0xBD63C5|0x1F1F1F|1|1|0
AU3_FUNCTION_STYLE2=0xBD63C5|0x1F1F1F|1|0|0
AU3_KEYWORD_STYLE1=0xD69C4E|0x1F1F1F|1|0|0
AU3_KEYWORD_STYLE2=0xD69C4E|0x1F1F1F|1|0|0
AU3_MACRO_STYLE1=0xBD63C5|0x1F1F1F|1|0|0
AU3_MACRO_STYLE2=0xBD63C5|0x1F1F1F|1|0|0
AU3_STRING_STYLE1=0x859DD6|0x1F1F1F|1|0|0
AU3_STRING_STYLE2=0x859DD6|0x1F1F1F|1|0|0
AU3_OPERATOR_STYLE1=0xDCDCDC|0x1F1F1F|1|0|0
AU3_OPERATOR_STYLE2=0xDCDCDC|0x1F1F1F|1|0|0
AU3_VARIABLE_STYLE1=0xB0C94E|0x1F1F1F|1|0|0
AU3_VARIABLE_STYLE2=0xB0C94E|0x1F1F1F|1|0|0
AU3_SENT_STYLE1=0xC8C8C8|0x1F1F1F|1|0|0
AU3_SENT_STYLE2=0xC8C8C8|0x1F1F1F|1|0|0
AU3_PREPROCESSOR_STYLE1=0x9B9B9B|0x1F1F1F|0|1|0
AU3_PREPROCESSOR_STYLE2=0x9B9B9B|0x1F1F1F|0|0|0
AU3_SPECIAL_STYLE1=0xC8C8C8|0x1F1F1F|0|1|0
AU3_SPECIAL_STYLE2=0xC8C8C8|0x1F1F1F|0|1|0
AU3_EXPAND_STYLE1=0xC8C8C8|0x1F1F1F|1|0|0
AU3_EXPAND_STYLE2=0xC8C8C8|0x1F1F1F|1|0|0
AU3_COMOBJ_STYLE1=0x00FF00|0x1F1F1F|1|1|0
AU3_COMOBJ_STYLE2=0x00FF00|0x1F1F1F|1|0|0
AU3_UDF_STYLE1=0xFF8000|0x1F1F1F|0|1|0
AU3_UDF_STYLE2=0xFF8000|0x1F1F1F|1|0|0


Although I would recommend ISN AutoIt Studio. Here's my config that will give you a nice pretty dark style. Right underneath my post is the workaround to change the caret color.

 

Edited by xiantez
Link to comment
Share on other sites

It's the closest thing to an IDE for AutoIt that we have. Much more than just the basic Scite Editor.

Once you've got it installed, and you've ran ISN to set everything up first, there's a config.ini under D:\Users\Your Username\My Documents\ISN AutoIt Studio\Data\ You can put those values in the post in that config file. You can also edit more settings by going to File -> Settings (Under Script Editor is the colors)

As for the Macro, to change the color for the caret. Project -> Macros -> New Macro. Click the + button next to functions and make the trigger Open File. Click the + button next to Details and select Execute Command. Hit OK and use this command

SendMessage($SCE_EDITOR[_GUICtrlTab_GetCurFocus($hTab)], $SCI_SETCARETFORE, 0xFFFFFF, 0)

You can change 0xFFFFF to whatever color you want the caret to be. Save your macro and re-open your script to update the caret.

Until the updated ISN comes up you'll have to add the macro to each project, so just save the macro and import it when you start a new project.

Link to comment
Share on other sites

The post right under where my config is (in the ISN autoit studio topic) tells you how to change the caret color (the blinking cursor is called the caret)

I also explained how to, step by step, add the macro to change the caret color in my last post in this topic.

2 hours ago, InunoTaishou said:

As for the Macro, to change the color for the caret. Project -> Macros -> New Macro. Click the + button next to functions and make the trigger Open File. Click the + button next to Details and select Execute Command. Hit OK and use this command

SendMessage($SCE_EDITOR[_GUICtrlTab_GetCurFocus($hTab)], $SCI_SETCARETFORE, 0xFFFFFF, 0)

You can change 0xFFFFF to whatever color you want the caret to be. Save your macro and re-open your script to update the caret.

Until the updated ISN comes up you'll have to add the macro to each project, so just save the macro and import it when you start a new project.

 

Link to comment
Share on other sites

  • Developers

This color is not part of the SciTEConfig options but can be manually added by adding this line in SciTEUser.properties:

# Make caret white
caret.fore=#FFFFFF

Jos

Dup Threads merged.

Edited by Jos

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

  • 2 years later...

Here is a Monokai style dark theme for SCITE Editor: 

Look alike or similar to Sublime Text 3.

Simply copy that code in your "SciTEUser.properties" wich is in Options > Open User Options File

Happy coding everyone

# SciTE Customization GUI ----------------------------------------
# Do not remove these lines or anything between them
position.left=-1
position.top=-1
position.width=-1
position.height=-1
position.maximize=0
position.tile=0
minimize.to.tray=0
save.position=1
toolbar.visible=0
end.at.last.line=0
ensure.final.line.end=1
statusbar.visible=1
full.screen.hides.menu=0
title.full.path=1
title.show.buffers=0
blank.margin.right=0
blank.margin.left=6
split.vertical=0
output.vertical.size=256
output.horizontal.size=0
output.initial.hide=1
clear.before.execute=1
output.scroll=1
fold=1
fold.on.open=0
fold.compact=0
fold.preprocessor=0
fold.comment=1
fold.flags=0
fold.symbols=0
fold.highlight=1
fold.highlight.colour=#71FF1C
fold.margin.colour=#282923
fold.margin.highlight.colour=#1E1E1E
fold.margin.width=16
use.tabs=0
tabsize=4
tab.indents=4
backspace.unindents=1
indent.size.$(au3)=4
view.indentation.guides=1
style.au3.37=fore:#1E1E1E,back:#282923
highlight.indentation.guides=1
selection.fore=#38FF1C
selection.back=#f9f9f9
selection.alpha=50
selection.multiple=1
selection.additional.typing=1

selection.additional.back=#282923
selection.additional.alpha=50
highlight.current.word=1
highlight.current.word.by.style=0
highlight.current.word.autoselectword=0
highlight.current.word.wholeword=0
highlight.current.word.matchcase=1
highlight.current.word.minlength=2
highlight.current.word.colour=#C2FFAE
margin.width=16
braces.check=1
braces.sloppy=1
style.au3.34=fore:#8F9D6A,back:#282923,bold,notitalics,notunderlined
style.au3.35=fore:#e7db74,back:#282923,bold,notitalics,notunderlined
caret.fore=#A0A0A0
caret.width=3
caret.period=700
caret.additional.blinks=1
caret.sticky=1
virtual.space=1
caret.line.back=#F8F8F8
caret.line.back.alpha=10
caret.policy.xslop=1
caret.policy.width=20
caret.policy.xstrict=0
caret.policy.xeven=0
caret.policy.xjumps=0
caret.policy.yslop=1
caret.policy.lines=1
caret.policy.ystrict=1
caret.policy.yeven=1
caret.policy.yjumps=0
line.margin.visible=1
line.margin.width=1+
style.*.33=fore:#DADADA,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics
error.select.line=0
style.errorlist.3=fore:#DADADA,back:#282923
error.marker.fore=#DADADA
error.marker.back=#282923
error.inline=0
style.error.1=fore:#e7db74,back:#282923
style.error.2=fore:#FF0000,back:#282923
are.you.sure=1
are.you.sure.for.build=0
are.you.sure.on.reload=0
save.all.for.build=0
load.on.activate=0
save.on.deactivate=0
reload.preserves.undo=1
check.if.already.open=0
quit.on.close.last=0
save.recent=1
save.session=1
save.find=1
session.bookmarks=1
session.folds=1
save.on.timer=600
strip.trailing.spaces=1
open.dialog.in.file.directory=1
calltips.color.highlight=#e7db74
style.au3.38=fore:#DADADA,back:#282923
calltips.set.above=0
calltip.au3.ignorecase=1
calltip.*.use.escapes=0
mousehover.calltips.dwelltime=750
autocomplete.au3.disable=0
autocomplete.choose.single=0
autocomplete.au3.ignorecase=1
autocompleteword.automatic=0
autocomplete.*.fillups =
buffers=100
buffers.zorder.switching=1
tabbar.visible=1
tabbar.multiline=0
tabbar.hideone=0
find.mark=1
find.replace.matchcase=0
find.replace.regexp=0
find.replace.regexp.posix=0
find.replace.wrap=1
find.replace.escapes=0
find.replacewith.focus=1
find.use.strip=0
replace.use.strip=0
find.close.on.find=1
find.in.files.close.on.find=1
find.replace.advanced=1
buffered.draw=1
two.phase.draw=1
technology=1
cache.layout=2
output.cache.layout=0
font.quality=3
ext.lua.auto.reload=1
ext.lua.reset=0
edge.mode=0
edge.column=143
edge.colour=#e7db74
indicators.alpha=50
indicators.under=1
style.au3.32=back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.au3.0=fore:#A688FF,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.au3.1=fore:#74705d,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.au3.2=fore:#77FFBB,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.au3.3=fore:#e7db74,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.au3.4=fore:#f92472,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.au3.5=fore:#FFB96A,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.au3.6=fore:#C4FF55,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.au3.7=fore:#e7db74,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.au3.8=fore:#FF3E3E,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.au3.9=fore:#ffffff,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.au3.10=fore:#DADADA,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.au3.11=fore:#8996A8,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.au3.12=fore:#4ABDAF,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.au3.13=fore:#CEF7BD,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.au3.14=fore:#0080FF,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.au3.15=fore:#FF80FF,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.errorlist.32=fore:#DADADA,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.errorlist.4=fore:#8F9D6A,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.errorlist.10=fore:#e7db74,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.errorlist.11=fore:#ffffff,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.errorlist.12=fore:#F9EE98,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.errorlist.0=fore:#FFFFFF,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined
style.errorlist.1=fore:#DADADA,back:#282923,font:monoOne,size:12,notbold,notitalics,notunderlined
backup.files=0
check.updates.scite4autoit3=1
proper.case=1
debug.msgbox.option=-1
debug.console.option=0
debug.trace.option=3
# Do not remove these lines or anything between them
# - SciTE Customization GUI ----------------------------------------
import au3.UserUdfs
import au3.keywords.user.abbreviations

"

monokai.PNG

Edited by QwertoX
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

×
×
  • Create New...