Jump to content
xiantez

SciTE Config - Syntax Color Question

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

Share this post


Link to post
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

>Exit code: 0

REAL search results

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

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Well I am using ISN AutoIt Studio now... it is really neat... however I still have the same issues.... Cannot figure out how to change the blinking cursor color to white, since I have a black background....

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

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

  • Similar Content

    • By mannworks00
      After testing various schemes (themes) in the settings for the newest SciTE editor (v. 4.1.2), I discovered that I wasn't able to fully reset it back to its original colors (See snapshot). Specifically, after applying the "__SciTE4AutoIt3_Dark ==> Dark SciTE4AutoIt3 Color scheme."
      The problem: The Line number column and the Output console do not reset back to their original colors.
      The Solution: Delete or edit the user config file. You can safely delete the config file because it will completely regenerate on SciTE restart- with it's factory (out of the box) color scheme.
      I also wrote a small script that will do it programatically: How to reset SciTE scheme in version 4.1.2.
       
       

    • By kellariluukku
      Hello.
      I'm using SciTE v3.3.14.5 I think, and I find this very annoying (GIF):
      https://i.gyazo.com/e60b5d94b8c16d217be4010e208d7042.mp4
       
      I've searched around but found nothing that helped including this:
      https://www.autoitscript.com/forum/topic/100517-stop-scite-removing-tab-indentations/
       
      So the problem obviously is that when I go to a new line after "EndIf", it removes the tab which I don't want to happen.
      Is there any fix?
       
      I've tried to change some configs such as 
          Line 183: # Indentation     Line 185: indent.size=0     Line 187: #indent.auto=0     Line 188: indent.automatic=0     Line 189: indent.opening=0     Line 190: indent.closing=0     Line 191: #tab.indents=0     Line 192: #backspace.unindents=0 strip.trailing.spaces=0 But nothing seems to get rid of this.
       
      Thanks
    • By BugFix
      There is an issue, while using the function SendSciTE_Command by @Jos, if more than one instance of SciTE is open. Each instance of SciTE has its own DirectorExtension window, so we must choose the right one.
      Here is a way to solve this:
      ; by BugFix Func _GetHwndDirectorExtension() Local $hActive = WinGetHandle('[ACTIVE]') Local $PIDActive = WinGetProcess($hActive) Local $aExtension = WinList("DirectorExtension") Local $PIDExt For $i = 1 To $aExtension[0][0] $PIDExt = WinGetProcess($aExtension[$i][1]) If $PIDExt = $PIDActive Then Return $aExtension[$i][1] Next EndFunc ; by Jos Func SendSciTE_Command($_sCmd) Local $WM_COPYDATA = 74 Local $WM_GETTEXT = 0x000D Local $WM_GETTEXTLENGTH = 0x000E224 Local Const $SCI_GETLINE = 2153 ;~ Local $Scite_hwnd = WinGetHandle("DirectorExtension") ; Get SciTE DIrector Handle Local $Scite_hwnd = _GetHwndDirectorExtension() ; Get SciTE DIrector Handle Local $My_Hwnd = GUICreate("AutoIt3-SciTE interface") ; Create GUI to receive SciTE info Local $My_Dec_Hwnd = Dec(StringTrimLeft($My_Hwnd, 2)) ; Convert my Gui Handle to decimal $_sCmd = ":" & $My_Dec_Hwnd & ":" & $_sCmd ; Add dec my gui handle to commandline to tell SciTE where to send the return info Local $CmdStruct = DllStructCreate('Char[' & StringLen($_sCmd) + 1 & ']') DllStructSetData($CmdStruct, 1, $_sCmd) Local $COPYDATA = DllStructCreate('Ptr;DWord;Ptr') DllStructSetData($COPYDATA, 1, 1) DllStructSetData($COPYDATA, 2, StringLen($_sCmd) + 1) DllStructSetData($COPYDATA, 3, DllStructGetPtr($CmdStruct)) DllCall('User32.dll', 'None', 'SendMessage', 'HWnd', $Scite_hwnd, _ 'Int', $WM_COPYDATA, 'HWnd', $My_Hwnd, _ 'Ptr', DllStructGetPtr($COPYDATA)) GUIDelete($My_Hwnd) EndFunc ;==>SendSciTE_Command Func MY_WM_COPYDATA($hWnd, $msg, $wParam, $lParam) Local $COPYDATA = DllStructCreate('Ptr;DWord;Ptr', $lParam) Local $SciTECmdLen = DllStructGetData($COPYDATA, 2) Local $CmdStruct = DllStructCreate('Char[' & $SciTECmdLen+1 & ']',DllStructGetData($COPYDATA, 3)) ;~ Local $CmdStruct = DllStructCreate('Char[255]', DllStructGetData($COPYDATA, 3)) $SciTECmd = StringLeft(DllStructGetData($CmdStruct, 1), $SciTECmdLen) EndFunc ;==>MY_WM_COPYDATA  
    • By Jos
      1/02/2018: Uploaded a new SciTe4AutoIt3.exe v19.102.1901.0 installer.
      This version contains the bugfix release for SciTE 4.1.2.
      There has been a major update for Tidy allowing now inline comments without them being shifted to the left by default.
      See this thread for the total story about the new behavior and the added options
      ==> SciTE4AutoIt3 v19.102.1901.0
      Enjoy,
      Jos

      Addition/Changes/Fixes in the current installer:

      -------------------------------------------------------------------------------------------------- 2-1-2019 *** Merged the SciTE v 4.1.2 by Neil Hodgson with our own version of SciTE. (Jos)     - Fixed regex issue for Alt+F in AutoItTools.lua     - Fixed another regex issue for several functions in AutoItTools.lua     - Fixed Header parameters now showing None when none are     - Fixed jump to function to also jump to the right Column again.     - Restored AutoItTools:Copy_BookMarks() functionality *** Updated AutoIt3Wrapper v19.102.1901.0 (Jos)     - 18.703.1808.1 renamed "#AutoIt3Wrapper_Au3Stripper_Stop_OnError" to "#AutoIt3Wrapper_Au3Stripper_OnError" with now as options S,C,F,Stop,Continue,ForceUse     - 18.708.1148.1 Added #include <WinAPIFiles.au3> back in the included file list to ensure backward compatibility.     - 18.708.1148.2 Added "Tidy_Stop_OnError" support to the AutoIt3Wrapper.INI file.                     Changed HiDPI settings for Win 10 compatibility.     - 18.708.1148.4 Added logic to be able to display Console Output of script that have #RequireAdmin while SciTE runs at normal level.     - 18.708.1148.5 Added support to allow to Stop Execution or Restart for scripts with #RequireAdmin while SciTE runs at normal level.                     It won't hang anymore when you reply No on the UAC and detect the elevated process didn;t start.     - 18.708.1148.6 Reverted HiDPI changes made in 18.708.1148.2 as problems are reported. needs investigation.     - 18.708.1148.7 Changed check for RequireAdmin AutoIt3Wrapper startup.     - 18.708.1148.8 Added #include <APIResConstants.au3> for backwards compatibility with AutoIt3 v3.3.14.x. *** Updated Au3Stripper v19.102.1901.0 (Jos)     - 18.708.1148.1 Fixed issue finding variable names on multiline statements     - 18.708.1148.2 Added check for ending \ in the AutoIt3Dir, and remove it when there, to avoid duplication of includes.     - recompiled with PellesC 6 to make it compatible with WinXP again. *** Updated SciTEConfig v19.102.1901.0 (Jos)     - 18.708.1148.1 Update to allow comments in *.SciTEConfig file lines. (JPM)                     This update includes the updated shemes to allow changing between them. *** Updated Tidy v19.102.1901.0 (Jos)     - 18.708.1148.1: Fix bug handling Directivelines ending with continuation character     - 18.708.1148.2: Fixed indentation when a "None breaking space"(C2A0) character is used in a UTF file.     - 18.708.1148.3: Fix bug when a continuation line starts with +x, where is would add a space between +- and number.     - 18.708.9999.x: Rewrite of some internal code to allow inlinecomments to remain at their current position.                       Details can be found in this post: https://www.autoitscript.com/forum/topic/196221-tidy-major-update-27-10-requesting-help-with-testing/     - 18.708.9999.22: Released to Beta.     - 18.708.9999.23: Added option to totally skip commentblocks so now the options are:                         #Tidy_Parameters=/tcb=0         =>only indent the whole commentblock  (default)                                          /tcb or /tcb=1 =>Tidy inside commentblock                                          /tcb=-1        =>leave whole commentbock alone                        Tidy.INI:#--> Tidy commentblock 0=only indent the whole commentblock  (default=0)                                 #                      1=Tidy inside commentblock                                 #                     -1=leave whole commentbock alone                                 Tidy_commentblock=0     - 18.708.9999.24: Added check for ending \ in the AutoIt3Dir and remove it when there.     - recompiled with PellesC 6 to make it compatible with WinXP again. --------------------------------------------------------------------------------------------------
      ==> ScitillaHistory page containing all SciTE-Scintilla updates.
      ==> Visit the SciTE4AutoIt3 Download page for the latest versions
      ==> Check the online documentation for an overview of all extra's you get with this installer.
    • By Miliardsto
      hello Im wondering if it is possible to process image in autoit like this
      1. firstly there is colorfull wallpaper
      2. Fill all colors (exception rose color) - with white
      3. Fill rose color with black color
      I see Gdi functions have things to manipulate images
      https://imgur.com/a/lFdY26g
×
×
  • Create New...