uC++ Syntax Highlighting for Sublime Text
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
snippets
.gitignore
Comments (uC++).tmPreferences
Completion Rules.tmPreferences
Indentation Rules.tmPreferences
README.md
Symbol List - Indent Class Methods.tmPreferences
Symbol List - Prefix Banner Items.tmPreferences
uC++.sublime-build
uC++.sublime-settings
uC++.tmLanguage

README.md

µC++ Syntax Highlighting for Sublime Text

Language definitions for µC++ source code.

  • 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

  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