Get an Epic Experience with Premium

_DevPad

Development Tools Login to Add Favorites
  • 1 Like
  • World of Warcraft
  • 40 Monthly Downloads
  • Supports: 5.0.4
  • 4,308 Total Downloads
  • Updated 08/28/2012
  • Created 02/07/2011
  • 13 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: GNU General Public License version 3 (GPLv3)
  • Newest File: _DevPad 5.0.0.1
or
Support development! **
Click here to lend your support and make a donation at www.pledgie.com !

About _DevPad

_DevPad is an in-game text editor and addon authoring tool, inspired by Mud's Hack.

Keep notes with it, write Lua scripts, or prototype addon concepts in its trimmed down development environment.  Organize your scripts into folders and share them with other _DevPad users.  Scripts can run automatically on login like mini addons, and can call each other like libraries or dependencies.

Details

When you first install _DevPad, it includes an “<samp>Instruction Manual</samp>” script with a quick reference to using the mod.  Here's an even quicker reference to the simple UI:

List Window

  • Reorganize scripts and folders by dragging and dropping.  Rename any folder or script by double clicking.
  • Set scripts to auto-run by clicking the arrow buttons next to their names in the list.  They will then run right after _DevPad's ADDON_LOADED event in the listed order.
  • Search script contents using Lua patterns in the search bar below the list.

Editor Window

  • Adjust font and font size, toggle Lua mode per-script, and access other editing tools with buttons at the editor's top-right.
  • Scripts in Lua mode appear syntax-highlighted (courtesy of krka's ForAllIndentsAndPurposes) and reveal UI Escape Sequences for editing directly.
  • Without Lua mode, chat links in scripts become clickable, and text coloring tools appear at the editor's top-right.
  • Use line numbers to navigate code.  Click a line number to select that line.
  • There is no save button; Script text is saved as you type.
  • Undo and redo changes with standard keyboard shortcuts, or with the left and right arrow buttons at the top-right of the editor.
  • Use familiar keyboard shortcuts to manipulate text:
    • <kbd><Ctrl+Z></kbd>/<kbd><Ctrl+Shift+Z></kbd>: Undo and redo.
    • <kbd><Ctrl+G></kbd>: Go to line number dialog.
    • <kbd><Ctrl+F></kbd>: Focus the list's search edit box.
    • <kbd><F3></kbd>/<kbd><Shift+F3></kbd>: Jump to next/previous search result.

Usage

There are two ways to open the list window: by keybind, or with the “<kbd>/devpad</kbd>” or “<kbd>/pad</kbd>” slash commands.

There are also two ways to run scripts as Lua code.  With a script open, click the play button at the top-left of the editor window.  Alternatively, you can run them by name if you include a Lua pattern with the slash command, like so: “<kbd>/devpad <var>Example Script</var></kbd>”.  You can use the slash command in a macro to bind keys to _DevPad scripts.

Sending and Receiving

You can send scripts, even entire folders, to others with the trumpet icon at the top of the list window.  When you receive something, you'll hear a sound and see a chat message prompting you to open your _DevPad.  Once opened, you can choose to keep or discard the new item.  Remember to always inspect what you receive from others before you run it though!

Notes

  • For help writing scripts, see the default “<samp>Instruction Manual</samp>” and “<samp>Example Script</samp>” pages.
  • Some components of _DevPad can safely be deleted to trim the editor even further:
    • <kbd><_DevPad/_DevPad.DefaultScripts.lua></kbd>: Default scripts and folders.
    • <kbd><_DevPad.GUI/_DevPad.GUI.Editor.Color.lua></kbd>: Color editing tools for non-Lua scripts.
    • <kbd><_DevPad.GUI/_DevPad.GUI.Editor.History.lua></kbd>: Undo and redo history.
    • <kbd><_DevPad.GUI/_DevPad.GUI.Editor.LineNumbers.lua></kbd>: Line numbering.
    • <kbd><_DevPad.GUI/_DevPad.GUI.List.Search.lua></kbd>: Script text searching tools.
    • <kbd><_DevPad.GUI/Libs/ForAllIndentsAndPurposes></kbd>: Syntax highlighting.
  • By default, _DevPad comes with an “<samp>Importers</samp>” folder containing scripts to import pages from other notepad mods.  WowLua, Hack, and TinyPad are currently supported.  See the comments at the tops of these scripts for specific usage instructions.
  • 5.0.0.1 / GUI: Moved editor line numbering into an optional module.
  • 4.3.0.1 / GUI:
    • Added text coloring controls to the editor while not in Lua mode.
    • Added an IterateChildren method to folder objects, usable as `for Child in Folder:IterateChildren() do ... end`.
    • Folders that temporarily open while dragging a list entry now close afterwards if nothing was dropped into them.
    • Separated list's search functionality into its own optional module.
  • 4.2.0.3 / GUI:
    • Added multiple undo and redo to the editor, controllable with <kbd><Ctrl+Z></kbd> and <kbd><Ctrl+Shift+Z></kbd> or left and right arrow buttons at the top-right of the window.
    • The editor now remembers cursor positions, so you can close or swap scripts without losing your place.
  • 4.2.0.2 / GUI:
    • Added a new default library script named “<samp>Libs/RegisterForSave</samp>” to allow other scripts to save variables between sessions.  See <samp><_DevPad/_DevPad.DefaultScripts.lua></samp> if you want to copy it into your existing pad.
    • While dragging an object in the list window, folders will only expand if you hold your mouse over them briefly.
    • Folders can now be opened and closed by simply clicking their names.  Also, they now temporarily close while being dragged.
  • 4.2.0.1 / GUI:
    • Slash command now only prints the run script's name if more than one match was found.
    • Added a faint line highlight to the editor.
    • Scripts and folders can now be broadcast over the guild officer channel.
  • 4.1.0.1 / GUI: Fixed buggy scrollbar behavior in 4.1.
  • 4.0.6.1 / GUI: The Lua syntax highlighting option now also controls “raw text” mode, allowing you to see and edit UI Escape Sequences.  When disabled, chat links become clickable inside the editor.
  • 4.0.3.1 / GUI: Initial release.

Addon Packs Containing This...

Comments

Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Infinite Crisis NA

Get Your Preferred Access Code!