CS343 : uC++ extension for Sublime Text

µC++ Syntax Highlighting for Sublime Text

Language definitions for µC++ source code.
An extension for Sublime Text that highlights uC++, the language used in CS343.
Author: Philip Duncan
Source code: Github

  • highlights .ucc.ucpp, and .uh files (other extensions like .cc and .h are available options)
  • autocompletes µC++ language constructs
  • support for µC++ type specifiers ( _Coroutine_Event_Task, ... )
  • support for µC++ control flow keywords ( _Accept_Select_When, ... )
  • support for µC++ exception handling ( _Resume_Finally_Enable, ... )

Contents

  • Installation
    • Method 1: Clone this Repository
    • Method 2: Download
    • (Optional) Set Up Highlighting for .cc and .h Files
  • Usage
  • References

Installation

Method 1: Clone this Repository

  1. Open Sublime and navigate to Preferences > Browse Packages.... Your Sublime Packages folder should open
  2. Clone this repo, placing it inside the Packages folder.
    git clone https://github.com/poduncan/ucpp-subl2-syntax.git
    
Opening any .ucc.ucpp, or .uh file will automatically highlight µC++ source code. If you want Sublime to highlight µC++ source code in .cc and .h files as well, refer to the (Optional) Set Up Highlighting for .cc and .h Files section.

Method 2: Download

  1. Download and unzip the latest release
  2. Open Sublime and navigate to Preferences > Browse Packages.... Your Sublime Packages folder should open
  3. Move the unzipped uCpp folder into the Packages folder

(Optional) Set Up Highlighting for .cc and .h Files

  1. Open any .cc file in Sublime
  2. Navigate to View > Syntax > Open all with current extension as... > uC++
  3. Repeat steps 1 and 2 for .h files
Now it works with .cc and .h files too! You can always change it back by resetting the default for each extension to C++.

Usage

Open µC++ source code in Sublime, and bask in the overwhelming warmth of its beauty.

References

Related Post

Previous
« Prev Post