µ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.
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
- Open Sublime and navigate to
Preferences > Browse Packages...
. Your Sublime Packages folder should open - 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
- Download and unzip the latest release
- Open Sublime and navigate to
Preferences > Browse Packages...
. Your Sublime Packages folder should open - Move the unzipped
uCpp
folder into thePackages
folder
.cc
and .h
Files
(Optional) Set Up Highlighting for - Open any
.cc
file in Sublime - Navigate to
View > Syntax > Open all with current extension as... > uC++
- 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
- Inspired by µC++ Syntax Highlighting for Vim
- C and C++ language files adapted from their sublime package
- µC++ language features taken from the µC++ Annotated Reference Manual, Version 7.0.0