SciTE

Great function for sending text to the SciTE Output Pane

SciTE Output paneWhile I predominately view text with Message boxes in AutoHotkey, sometimes they are not the right tool for the job.  I wrote a short function to automate sending text to the SciTE Output pane.

SciTE is a great editor however the Output pane is greatly underutilized.  Below is the function I wrote to manipulate it

SciTE Output Pane AutoHotkey Function

And here is a short video walking through how to use it

Sending Text to the SciTE Output Pane

 

SciTE

Configure SciTE to trim whitespace on saves: Automatically clean your code!

trim whitespace

Configuring SciTE to automatically trim whitespace upon file save is super-easy!   A minor tweak to the user.properties will tell SciTE to, automatically, trim spaces, tabs, etc. from the end of each line.

The following example is what I added to have it apply to my AutoHotkey files (which have an extension of .ahk).  If you have file patterns you can achieve the same goal by using something like this: strip.trailing.spaces.$(file.patterns.yaml)=0

Configure SciTE to automatically trim whitespace upon file save

Have SciTE automatically trim white space at end of line

SciTE

Excellent SciTE editor video documenting powerful features

SciTE editor

SciTE Editor demonstration

If you frequently use tools like Notepad, Notepad++,  Textpad, etc. I highly recommend you give the SciTE editor a try! Here is a great video demonstrating it’s powerful features and how it can save you a ton of time!  It is highly customizable (but there is a learning curve to making the tweaks to your user settings.  I love it because I have the property files (which provide IntelliSense & syntax highlighting for ~80 languages)

scite editor

The editor is free and can be downloaded from here.  If you’re using AutoHotKey you can get SciTE4AutoHotkey built by fincs here.

Code Porn | Showing off SciTE Text Editor: Watch people code.

 

 

SciTE

Text file explorer-Determine file headers & delimiters without opening file

Text file explorer

Text File Explorer

I often work with large text files in which the file extension (.txt, .dat, .csv, .tab) doesn’t always indicate what type of delimiter is used in the file.  When the file is small, I’ll typically just “pop” it open in SciTE / Notepad.  Large files (anything over 20 megs) often take a fair amount of time to read and very large files ( a gig or more) will often run into out of memory issues.

On top of wanting to know the delimiter, I also frequently want to know what fields / Headers are in the file.   This normally means I have to open it in a text editor or Excel and review.  I wrote the below Text File Explorer in AutoHotkey script to simplify the above.  I can highlight a file from Windows Explorer and quickly detect the type of delimiter plus display headers if I care to.

Text file explorer AutoHotkey code:

Here’s a video demonstrating the usage of the Text Explorer

Text file evaluator-Determine Type of delimiter and File Headers