Sublime: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Sublime is a text editor that can be dowloaded [http://http://www.sublimetext.com here].
Sublime is a text editor that can be dowloaded [http://http://www.sublimetext.com here].


How to Install Lexi tools in Sublime.
====How to Install Lexi tools in Sublime====


1. Create a Build System in Sublime for Lexi's Compiler by opening Tools>Build Systems>New Build System:
1. Create a Build System in Sublime for Lexi's Compiler by opening Tools>Build Systems>New Build System:
Line 13: Line 13:
  }
  }


3. Restart Sublime and select the compiler from Tools>Build Systems>CompileBR
3. Restart Sublime, open a .BRS file, and select the compiler from Tools>Build Systems>CompileBR. Sublime will remember which you selected and hit Ctrl-B to run it.


4. Repeat this for each of the Lexi tools. Simply replace the ConvStoO.cmd above with each and save as .sublime-build files:  
4. Repeat this for each of the Lexi tools. Simply replace the ConvStoO.cmd above with each and save as .sublime-build files:  
*StripLN.cmd  (strip line numbers)
*StripLN.cmd  (strip line numbers)
*AddLN.cmd    (add line numbers)
*AddLN.cmd    (add line numbers)
*RunBR.cmd    (run BR program)
*RunBR.cmd    (run BR program-this one is a work in progress)


NOTE: Sublime is a little slow to re-load the file, so it may take a few seconds until you see your line numbers disappear or reappear.
More information on Sublime Text can be found at [http://docs.sublimetext.info this site].
[[Category:Basics]]
[[Category:Basics]]

Latest revision as of 01:13, 27 May 2014

Sublime is a text editor that can be dowloaded here.

How to Install Lexi tools in Sublime

1. Create a Build System in Sublime for Lexi's Compiler by opening Tools>Build Systems>New Build System:

2. Save this JSON file as CompileBR.sublime-build within the folder Packages/User/Lexiplugin

{
    "cmd": ["ConvStoO.cmd", "$file_name", "$file_base_name", "$file", "$file_path"],
    "selector": ".brs",
    "working_dir": "C:\\Lexi\\"
}

3. Restart Sublime, open a .BRS file, and select the compiler from Tools>Build Systems>CompileBR. Sublime will remember which you selected and hit Ctrl-B to run it.

4. Repeat this for each of the Lexi tools. Simply replace the ConvStoO.cmd above with each and save as .sublime-build files:

  • StripLN.cmd (strip line numbers)
  • AddLN.cmd (add line numbers)
  • RunBR.cmd (run BR program-this one is a work in progress)

NOTE: Sublime is a little slow to re-load the file, so it may take a few seconds until you see your line numbers disappear or reappear.

More information on Sublime Text can be found at this site.