Notepad++ User Defined Language for CodeV Macro-PLUS sequence
--- syntax highlighting for Synopsys CodeV macros (http://optics.synopsys.com/codev/)
--- code folding for IF/FOR statements, comments and region blocks
--- color theme modified from Solarized, easy on the eyes (http://ethanschoonover.com/solarized)
--- color-theme balanced for different kind of sequences (general macros, optimizations, user-defined functions, etc)
--- keyword auto-completion and predefined function calltips (Updated on May-08-2014)
View an animation of above features, checkout the demo animation
There will be two version (see screenshots, http://goo.gl/oIxhFq):
-
Light: UDL_CodeV_SolarizedLight.xml (updated on May-05-2014)
work with autocomplete file: CodeV_SolarL.xml
-
Dark: UDL_CodeV_SolarizedDark.xml (not yet uploaded)
will work with autocomplete file: CodeV_SolarD.xml
###[HOW TO USE #1 - Syntax Highlighting]
The User Defined Language(UDL) style files are for Notepad++ (developed on NPP v6.5, http://notepad-plus-plus.org/), working in conjunction with the two default Solarized themes (Solarized-light and Solarzied), respectively.
- Launch NPP, depending on which brightness version you want to use, set the overall theme first:
[Setting -> Style Configurator -> Select theme -> Solarized-light/Solarized]
The font style can also be set in the Style Configurator.
- Import the UDL style XML file, i.e. UDL_CodeV_SolarizedLight/Dark.xml.
[Language -> Define your language -> Import]
-
Restart NPP
-
Open a .ZPL file and the color syntax shoud work automatically. If not, select it manually by
[Language -> CodeV_SolarL/CodeV_SolarD]
- If you want to change the color or style, go to
[Language -> Define your language] and make changes.
###[HOW TO USE #2 - Auto-complete and function calltips]
The autocomplete files (APIs) are for Notepad++ (developed on NPP v6.5, http://notepad-plus-plus.org/)
-
Place the API files, i.e. CodeV_SolarL.xml or CodeV_SolarD.xml in Notepad++ installation folder
Program Files (x86)\Notepad++\plugins\APIs
-
Turn on Autocomplete in NPP
[Settings -> Preferences -> Auto-Completion -> Enable...]
Suggest to turn on "Function completion" only and from 2nd character.
-
Turn on function calltip hints, check the option:
[Settings -> Preferences -> Auto-Completion -> Function parameters hint on input]
-
[Optional] Turn on Auto-Insert of matched pair of ( ), " " and ' '
[Settings -> Preferences -> Auto-Completion -> Auto-Insert]
=======================
Contact me @ huxinda@gmail.com