Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
1 2 3 4 5 … 18 Next »
New Editor
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
New Editor
12-03-2014, 07:43 PM,
#1
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
New Editor
Something I've been working on the past few days. It's now on the server.

Light theme:
   

Dark theme:
   

This new editor is using the Ace code editor loading directly from the server. I find Ace is a much better editor than the E2 editor from wiremod (which is what SF is using currently). It also has plenty of themes so you can have it syntax highlight with the colours you want. Another advantage is I have added Starfall specific highlighting for object methods/library functions.

You can also share files to a server hosted folder for collaboration/releases.

Hopefully this will make developing SF a much better experience and allow people to share code much quicker.

Known bugs:
  • None! Please report any you find.

Console commands
  • sf_editor_fontsize - Sets the font size to use, default is 16.
  • sf_editor_autosaveinterval - Sets how often, in seconds, to auto save files. Default is 120 (every 2 minutes).
  • sf_editor_reset - Resets all settings back to default.

Keyboard shortcuts
The editor is heavily reliant on keyboard shortcuts. There's no right click menu like the old E2 editor.
  • Ctrl + Z - Undo
  • Ctrl + Y - Redo
  • Ctrl + F - Find
  • Ctrl + H - Find and replace
  • Ctrl + S - Save
  • Ctrl + N - New file
  • Tab - When selecting multiple rows, will indent all of them.
  • Shift + Tab - When selecting multiple rows, will remove an indent from all of them.
  • Ctrl + / - Toggle commenting of all selected rows.
  • Ctrl + L - Opens the command bar.
    • Type :<num> to go to line <num>, e.g :100 goes to line 100.
    • Type @<functionname> to search the current tab's code for the given function (like Sublime Text's command palette).
    • Type !<command> to run commands such as !save, !new etc.
    • Type #<searchstring> for a quick find in the current file. Hit enter to go to the next result.
    • If you start typing without a symbol at the start, it will search your local directory for matching files.

For a full list of the editor's shortcuts, see here: https://github.com/ajaxorg/ace/wiki/Defa...-Shortcuts
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
New Editor - by Person8880 - 12-03-2014, 07:43 PM
RE: New Editor - by Blackhawk - 14-03-2014, 04:55 PM
RE: New Editor - by Person8880 - 14-03-2014, 10:12 PM
RE: New Editor - by Blackhawk - 14-03-2014, 10:35 PM
RE: New Editor - by Person8880 - 14-03-2014, 10:39 PM
RE: New Editor - by Veegi - 15-03-2014, 11:02 AM
RE: New Editor - by Person8880 - 15-03-2014, 01:12 PM
RE: New Editor - by Person8880 - 15-03-2014, 04:40 PM
RE: New Editor - by Cobra - 19-03-2014, 09:00 AM
RE: New Editor - by Person8880 - 19-03-2014, 01:18 PM
RE: New Editor - by Cobra - 19-03-2014, 02:33 PM
RE: New Editor - by Veegi - 21-03-2014, 01:26 PM
RE: New Editor - by Blackhawk - 21-03-2014, 02:03 PM
RE: New Editor - by Liizzii - 21-03-2014, 02:30 PM
RE: New Editor - by Person8880 - 21-03-2014, 03:23 PM
RE: New Editor - by Blackhawk - 21-03-2014, 04:10 PM
RE: New Editor - by Person8880 - 21-03-2014, 05:13 PM
RE: New Editor - by Blackhawk - 21-03-2014, 05:23 PM
RE: New Editor - by Person8880 - 21-03-2014, 05:30 PM
RE: New Editor - by Veegi - 22-03-2014, 12:01 PM
RE: New Editor - by Person8880 - 22-03-2014, 01:58 PM
RE: New Editor - by Blackhawk - 22-03-2014, 02:49 PM
RE: New Editor - by Cobra - 24-03-2014, 08:25 AM
RE: New Editor - by Person8880 - 24-03-2014, 01:17 PM
RE: New Editor - by Person8880 - 25-10-2014, 10:22 PM
RE: New Editor - by pho - 05-07-2016, 12:57 PM
RE: New Editor - by Person8880 - 05-07-2016, 04:35 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.