AkelPad_scripts icon indicating copy to clipboard operation
AkelPad_scripts copied to clipboard

Scripts for AkelPad text editor with Scripts plugin

Scripts for AkelPad text editor with Scripts plugin.
Also see Scripts collection forum thread.
License for all scripts: BSD (like for AkelPad itself).

Scripts in alphabetical order

Include/jsBeautifier_tests.js

Tests part of jsBeautifier.js (not required for regular usage)

Include/timer.js

Helper functions for user32::SetTimer()

adblockPlusChecksum.js

Adds checksum to Adblock Plus subscription

AESCrypt.js

Encrypt/decrypt text using AES-256
[see crypt.js and cryptExt.js]

alignWithSpaces.js

Align selected code with spaces to user defined string
Screenshot: alignWithSpaces.js

autoSaveSession.js

Automatically saves current session after selection or scroll changes

backupVersion.js

Tries find file version and copy current file to the same directory:

file.js      -> file-%version%.js
file.user.js -> file-%version%.user.js
closeLeftOrRightTabs.js

Close tabs to the left or right (temporary check “Switch tabs: right-left” option)

closeUnsavedTabs.js

Close unsaved tabs (all or only empty)

Context menu example:

"CLOSE"
{
  "Other" Command(4320)
  -"To the left" Call("Scripts::Main", 1, "closeLeftOrRightTabs.js", "-left")
  -"To the right" Call("Scripts::Main", 1, "closeLeftOrRightTabs.js")
  SEPARATOR
  -"Empty unsaved" Call("Scripts::Main", 1, "closeUnsavedTabs.js", "-onlyEmpty=true -askToSave=false -closeCurrent=true")
  -"All unsaved" Call("Scripts::Main", 1, "closeUnsavedTabs.js", "-onlyEmpty=false -askToSave=true -closeCurrent=true -stopOnCancel=false")
  SEPARATOR
  "All" Command(4319)
  "All unchanged"	Command(4321)
}
colorsConverter.js

Convert color between “#fee” and “rgb(255, 238, 238)” formats

converter.js
  • Encode/decode HTML entities (& <=> &amp;)
  • Convert JavaScript escape sequences like "\u00a9" or "\xa9" (“©” symbol)
  • Escape/unescape special RegExp symbols
  • Escape/unescape special strings symbols
  • Encode/decode Uniform Resource Identifiers (URIs)
  • Hexadecimal escape/unescape
  • Base64 encode/decode
  • Convert charset
    Screenshot: converter.js
convertEscapes.js

Converts JavaScript escape sequences like "\u00a9" or "\xa9" (“©” symbol)
[see converter.js]

convertHTML.js

Encode/decode HTML entities (& <=> &amp;)
[see converter.js]

copyPath.js

Copy path to file in configurable format

crypt.js

Encrypt/decrypt text using AES-256 or/and Blowfish
Screenshot: crypt.js
[see cryptExt.js]

cryptExt.js

Encrypt/decrypt text using AES-256/Blowfish/Twofish/Serpent
Screenshot: cryptExt.js

decodeHTML.js

Decode HTML entities (&amp; => &)
[see convertHTML.js and converter.js]

encodeHTML.js

Encode HTML entities (& => &amp;)
[see convertHTML.js and converter.js]

executeScript.js

+ executeScript.vbs
Execute selected or all code

forgetAboutTab.js

Close current tab and remove information about it from recent files

fullWindow.js

Just like full screen mode, but preserve window size and position

getHash.js

Calculates hash sum of text
Screenshot: getHash.js

getLinks.js

Tries to extract links from any text

goToLongestLine.js

Go to longest line below or above current
Screenshot: goToLongestLine.js

highlighter.js

Allow set extension manually for Coder plugin with basic autodetection

insertDateTemplateExample.js

Insert current date

insertEval.js

Script like built-in Calculator.js

insertTag.js

Simplify tags insertion

jsBeautifier.js

JavaScript unpacker and beautifier
Also see Include/jsBeautifier_tests.js to run internal tests using -test argument

measuresConverter.js

Convert measures (internal) and currency (used cached data from exchange-rates.org, fxexchangerate.com and bitcoincharts.com)
Screenshot: measuresConverter.js

moveResizeWindow.js

Move or/and align AkelPad's main window

newFileTemplate.js

+ newFileTemplate-test.js
Create new file from template

openFileIn.js

Example for open file in other application

openRelativeFile.js

Tries to open file with relative path (will be used system association to open binary files).
Supports Mozilla's chrome.manifest files.

punctuationFixer.js

Fix some issues in Russian punctuation

replaceDiacriticLetters.js

Replace diacritic letters with “simple” latin characters

restart.js

Restart AkelPad

runScript.js

Run script from AkelFiles\Plugs\Scripts\ directory with arguments
Screenshot: runScript.js

saveStoreTime.js

Temporary check “save file time” option and save current document

scriptToBookmarklet.js

+ scriptToBookmarklet_w2k.js
Convert JavaScript code to one line bookmarklet (javascript: ...).

tabsNextPrevious.js

Switch between tabs in order of them usage (temporary check “Switch tabs: next-previous” option)

tabsRightLeft.js

Switch between tabs in order of them arrangement (temporary check “Switch tabs: right-left” option)

tabsSwitchAlt.js

Switch between tabs using alternative way (temporary check “Switch tabs: right-left” or “Switch tabs: next-previous” option)

TabsToSpaces_mod.js

Convert tabulation to space, modified version of TabsToSpaces.js

textStatistics.js

Provide some statistic for English and Russian texts

tileTabs.js

Tile current tab with next selected: select first tab, call script and then select second tab

toggleComments.js

Adds/removes comments

toggleToolbarRows.js

Toggle multiline toolbar from ToolBar plugin (convert BREAK <-> #BREAK)


Screenshot: toggleToolbarRows.js (before)

Screenshot: toggleToolbarRows.js (after)

undoableReopen.js

Reopen file and preserve undo/redo buffer (just replace all text, if it was changed)

undoRedoAll.js

Undo/redo all changes (or undo/redo to saved state)

unixTime.js

Convert Unix time
Screenshot: unixTime.js

winMergeTabs.js

Compare contents of current and next selected tab using WinMerge or any other compare tool