Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

skadomsky/Objective-C-Plus-Plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

The Objective-C-Plus-Plus UDL

Version
User Defined Languages (UDL) is a feature of Notepad++ editor, allowing user to define syntax highlights / folding rules of any programming languages. This UDL gives highlights on some fundamental classes in Cocoa, keywords in C++/ Objective-C, and escape characters in Objective-C++ programming languages.

Please refer to Notepad++ Offical UDL Collection Repository for more infomation of UDLs. You can also find this UDL avaliable in this repository.

Usage

  1. Download the released raw file.
  2. Launch Notepad++, click 'Language' on toolbar, then go to 'User Defined Language', and select 'Define your language...'.
  3. Click 'Import...', select the UDL in the popped up window.
  4. You can specify your highlights / folding rule in User-Defined window. When all your works done, click the 'x' button on the upper right side of the window.
  5. Push 'Language' button again, you will find 'Objective-C++' option on the down side of 'User Defined Language' menu. Choose it, Notepad++ will apply these highlights / folding rules immediately.

Enhancement

· The UDL is still in need of more highlight rules for Cocoa/UIKit classes. Obviously we can't import all Cocoa/UIKit classes (for its huge size and rich implementation on almost everything) We suggest to add classes used in a high frequency (for example, NSString is a good class to add) This could contribute to a better experience while editing Objective-C++ file for common cross-platform development.
· Theme adoptation. This UDL has been tested well under the default light and dark theme. You can fork this repository to recreate your own UDL file for your unique themes. The UDL files you made for different themes could be uploaded to upstream. It's OK for you to add a duplicate to this repo by submitting a PR.