Skip to content

Latest commit

 

History

History
80 lines (41 loc) · 2.69 KB

README.md

File metadata and controls

80 lines (41 loc) · 2.69 KB

UDL_CodeV_SEQ

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):

  1. Light: UDL_CodeV_SolarizedLight.xml (updated on May-05-2014)

       work with autocomplete file: CodeV_SolarL.xml
    
  2. 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.

  1. 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.

  1. Import the UDL style XML file, i.e. UDL_CodeV_SolarizedLight/Dark.xml.

[Language -> Define your language -> Import]

  1. Restart NPP

  2. Open a .ZPL file and the color syntax shoud work automatically. If not, select it manually by

[Language -> CodeV_SolarL/CodeV_SolarD]

  1. 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/)

  1. Place the API files, i.e. CodeV_SolarL.xml or CodeV_SolarD.xml in Notepad++ installation folder

    Program Files (x86)\Notepad++\plugins\APIs

  2. Turn on Autocomplete in NPP

    [Settings -> Preferences -> Auto-Completion -> Enable...]

Suggest to turn on "Function completion" only and from 2nd character.

  1. Turn on function calltip hints, check the option:

    [Settings -> Preferences -> Auto-Completion -> Function parameters hint on input]

  2. [Optional] Turn on Auto-Insert of matched pair of ( ), " " and ' '

    [Settings -> Preferences -> Auto-Completion -> Auto-Insert]

=======================

Contact me @ huxinda@gmail.com