Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.43 KB

STUDENT.md

File metadata and controls

22 lines (15 loc) · 1.43 KB

To use this software to share code in class, you will need to (1) install Sublime Text 3 and (2) install a specific plug in for Sublime Text.

To install Sublime Text 3, go here.

To install the necessary Sublime Text plug in, follow these steps:

  • Open Sublime Text
  • Click Show Console in the View menu.
  • Copy this code:
import os; package_path = os.path.join(sublime.packages_path(), "C4BStudent"); os.mkdir(package_path) if not os.path.isdir(package_path) else print("dir exists"); c4b_py = os.path.join(package_path, "Code4Brownies.py") ; c4b_menu = os.path.join(package_path, "Main.sublime-menu"); c4b_version = os.path.join(package_path, "VERSION"); import urllib.request; urllib.request.urlretrieve("https://raw.githubusercontent.com/vtphan/Code4Brownies/master/src/C4BStudent/Code4Brownies.py", c4b_py); urllib.request.urlretrieve("https://raw.githubusercontent.com/vtphan/Code4Brownies/master/src/C4BStudent/Main.sublime-menu", c4b_menu); urllib.request.urlretrieve("https://raw.githubusercontent.com/vtphan/Code4Brownies/master/src/VERSION", c4b_version)
  • Paste copied code to Console and hit enter.

Uninstallation of Sublime Text plugin:

Open Sublime Text, go to View, click Show Console, copy this code, paste to console and hit enter:

import os; import shutil; package_path = os.path.join(sublime.packages_path(), "C4BStudent"); shutil.rmtree(package_path)