Can be found on the Creation Kit Wiki
http://www.creationkit.com/Notepad%2B%2B_Setup
- Beautifies Papyrus source code
- Indent statement blocks
- Will capitalize the proper Events / Functions / Statements
scriptname zz_ourstartupspellsscript extends questformlist property ourspellslist auto;add spells on startupevent oninit()actor player = game.getplayer()int i = 0int size = ourspellslist.getsize()spell ourspell = nonewhile i < size;check to see if spell is valid and in the players spell menuourspell = (ourspellslist.getat(i) as spell)if ourspell && !player.hasspell(ourspell)player.addspell(ourspell)endifi += 1endwhileendevent
Transformed into
ScriptName zz_ourstartupspellsscript Extends QuestFormList Property ourspellslist Auto;add spells on startupEvent OnInit() Actor player = Game.GetPlayer() Int i = 0 Int size = ourspellslist.GetSize() Spell ourspell = None While i < size ;check to see if spell is valid and in the players spell menu ourspell = (ourspellslist.GetAt(i) As Spell) If ourspell && !player.HasSpell(ourspell) player.AddSpell(ourspell) EndIf i += 1 EndWhileEndEvent
