Sign in to follow this  
Followers 0
qwert

SciTE questions

8 posts in this topic

► Which feature can I use to get rid of the "highlight matching"

► What controls the colors used for the error boxes?  (I see the setting for turning off inline errors.)

► Does anyone know of a page that offers suggested editor settings? ... and maybe shows examples?

I recently upgraded and, IMHO, some of the new defaults are getting a little wild.

Thanks for any help.

 

post-29172-0-82159000-1391632983_thumb.p

Share this post


Link to post
Share on other sites



#1 

# 0 turns it off

highlight.current.word=1
 

#2

 

# Display settings for inline errors on the source Jump to first is supported via autoit3wrapper only.
error.inline=1
error.jump.to.first=1
#
style.error.0=back:#F0F0F0,fore:#ff0000,xfont:Consolas,size:8.7
style.error.1=fore:#FF0000,back:#FFFF00
style.error.2=fore:#FFFFFF,back:#FF0000


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

I recently upgraded and, IMHO, some of the new defaults are getting a little wild.

 

Care to explain because I don't think I've made any recent changes?

The Highlight matching words and Inline Errors features were released in the SciTE version of June 2012.

They are both easy to switch off, but are to my humble opinion pretty nice features to speed up editing.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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

@ BrewManNH:  Thanks.  I searched my AU3 directory and found highlight.current.word in the Global.Properties ... and then searched back in the SciTE help and found this full description.  It was there but I didn't know it.  I was looking too hard in the Config settings, since that's where all the other colors are.

Add tooltips within the script for Au3Check errors and warning

error.inline=1
style.error.1=fore:#000000,back:#FFFFD0
style.error.2=fore:#000000,back:#FFD0D0
The style lines set the fore and back colours for the warning and error tooltips. These tooltips are in addition to the display in the SciTE console and are automatically removed by SciTE when the line is corrected and Au3Check rerun.

Highlight all instances of the currently selected word

highlight.current.word=1
highlight.current.word.by.style=1
highlight.current.word.autoselectword=0
highlight.current.word.wholeword=0
highlight.current.word.matchcase=0
highlight.current.word.minlength=3
highlight.current.word.colour=#00D040
indicators.alpha=63
indicators.under=1
The lines above are the default settings in the SciTEGlobal file. To disable the highlighting set the first line to 0. The next 5 lines set the requirements for SciTE to match the other instances of the selected word, while the final 3 set the colour of the additional highlighting.

Edit Instructions:

►In SciTE, open <Au3 Directory>SciTESciTEGlobal.properties

►Search for highlight.current.word ... then make change(s)

►Search for error.inline ... then make change(s)

►Save ... then Close. The changes take effect immediately.

 

@Jos: I'll offer these two points:

1.  As odd as it might seem, I really was running SciTE from about 2011.  I had never seen these two features.

2.  Maybe I make more errors than most, but imagine what a screen looks like with four or five of the dual error blocks on it.  They're visually "jarring" (equivalent to a loud buzzer going off) ... and they really disrupt the flow of the code.  I prefer it to tell me the line number and a short description ... IOW, like it used to be.

I guess we all have our ways ... which is why you've made it so configurable.  I mentioned this before: it's one of the two or three best pieces of software I've ever used.  My quest for these adjustments to the settings is only to keep it "best" for me.

Thanks for asking about this.

Share this post


Link to post
Share on other sites

@Jos: I'll offer these two points:

1.  As odd as it might seem, I really was running SciTE from about 2011.  I had never seen these two features.

2.  Maybe I make more errors than most, but imagine what a screen looks like with four or five of the dual error blocks on it.  They're visually "jarring" (equivalent to a loud buzzer going off) ... and they really disrupt the flow of the code.  I prefer it to tell me the line number and a short description ... IOW, like it used to be.

I guess we all have our ways ... which is why you've made it so configurable.  I mentioned this before: it's one of the two or three best pieces of software I've ever used.  My quest for these adjustments to the settings is only to keep it "best" for me.

Thanks for asking about this.

I will have a look to see to add the Word matching settings also to SciTEConfig so they are easier to configure.

The Inline error thing could be overwhelming in the beginning but it does automatically jump to the first error and is easy to work your way through them by pressing F4.

Cheers

jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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's an example of how I've configured the features.  I use Segoe UI SemiBold.  I'll see how the lightened error boxes work out for me.

Thanks again for the help on this.

post-29172-0-36569700-1391637782_thumb.p

Share this post


Link to post
Share on other sites

qwert,

I have added the "inline error" colours and the "word selection" options and colour to SciTEConfig and sent the resulting script to Jos. If he likes it you might get to see these new configuration options in the next release. ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

That's good to hear.  And I'll try to do better at keeping up with changes!

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