Contains auto updater now!
Hey everybody!
I finally finished my Notepad LuaEditor so far that I can publish it and it turned out pretty cool and useful in the end!
Have a short list of features it contains:
- Menubar that can be triggered with ctrl shortcuts
- Windows with buttons, labels, textfield, checkboxes, …
- Text selection, copying, pasting, etc.
- Better Highlighting, Line Numbers and a StatusBar
- Code Suggesting/Completion
- Searching for text
- Integrated debugger
Doesn't it look pretty cool? :D/>/>/>/>
Everything is completly written by myself (the two APIs as well), meaning I'm open for any questions you have!
I wish you lots of fun with my ComputerCraft Version of Notepad
Changelog:
Changelog 1.04:
Spoiler
- bug: table = abc.insert colored wrong- bug: too much rendering especially with multiline comments
- bug: you can get uncolored multiline comments/strings by:
> pasting a comment that is longer than the screenheight
> goto line where comment-start was not displayed yet
- bug: everything gets rendered when scrolling not changing anything
- bug: home and end key render line if no scroll
- bug: all text gets rendered when statusbar disappears
- bug: ctrl-S draws whole screen
Spoiler
- try adding ä|ö|ü|ß press prevention since they bug out anyway- bug: before debugging, ctrl-timer can be still active, causing events
- bug: "table.–XXX.sort" comment note colored as comment
- ctrl-[home/end] scrolls 10 chars right/left (useful for selection)
- bug: deleting everything from codesuggestion will not trim spaces after line
- bug: "table." with line end after you can open code suggestion with freecursor everywhere behind it
- bug: "elseif"/"else" should also count as "end" for "if"
- bug: selection not reset after opening file
- bug: save as can't open folder
Spoiler
- SaveAs Window- Explorer not getting updated after disk/peripheral which changes filestructure
- Coloring/Suggesting of sth like "test"..textutils.serialize
- bug "table: <rest until="" end="" of="" line="">" rest until end of line not highlighted
- scroll "hitbox" of explorer offset down
- Pressing "open" in the OpenWindow on a folder/nothing crashes
- Opening a read-only file not changing filename
- Add Bool Const to Code Highlighting
- Add keywords (while/true/return/…) to suggestion
- add shell.getRunningProgram()-override for debug to simulate a real "shell.run"
- bug "test" bla "\\" > bla highlighted as string
Spoiler
- external pasting not removing selection- strings using [[foo bar]] now work multilined as well (like –[[ comments ]])
- moved goto, find, find next to view-tab
- Selection in uncolored mode
- add options window to view-tab:
+ Toggle Code Suggestion
+ Toggle Highlighting
+ Modular LineNr Width
+ Toggle Free Cursor
+ Create missing counterpart for "while/repeat/for/…"
- opening/closing a window won't scroll if cursor is offscreen
- added "goto error" in error window
- added AutoUpdater!
- Open File Window
Spoiler
- redo/undo- Add some sort of Help for whole IDE
- make windows moveable with left-click-drag and reset to their original centered position with right-click
- ctrl-backspace deletes whole word/expression
- add some right-click actions:
+ Code:
> if click on global const, open window showing its value in a textbox
> if click on linenumber where do/function/loop-start shrink whole code inside and color lineNr orange
- add downloadable color-theme support
- spilt Preferences into more windows
- change Preferences from below
- add .notepad folder for config/active theme/…
Here the pastebin links for all the files:
Use this to install everything automatially:
pastebin run A8vHkwsp
OR
Get the needed files on your own:
notepad:
pastebin get tw5dBNJb notepad
APIs:
pastebin get sFgHKGnH apis/advTable
pastebin get g1RALA3Q apis/application</rest>