Archive for April, 2008

SystemVerilog Syntax Highlighting in MS Word (and Powerpoint)!

Saturday, April 26th, 2008

So you have a presentation to give and you need to show your SV source code? Want to pep it up a bit by highlighting keywords? Me too!

I used to do this manually – comments in green, keywords in blue… all with the Powerpoint color pallet thing, but NOT anymore!

How?

Well, go read this blog post. You’ll discover that the WinXP version of the SciTE text editor has a “Copy as RTF” feature. This means that you can copy your highlighted source to your word or powerpoint (or similar) document and keep the color highlighting.

But SciTE doesn’t have a syntax highlighting capability for SystemVerilog built in… bummer.

But wait! Here’s one! Yes – I threw together a syntax file for SV and posted it.

The detailed steps on how to copy your highlighted source are spelled out in this blog entry – so go check it out.

And then come back here to grab the syntax property files for SciTE and get them installed.

Yea! Presentations!

How to Install SciTE Syntax Files

Saturday, April 26th, 2008

So I’ve got the SystemVerilog syntax files posted – but I never told you how to install them. Here’s a quick rundown:

  1. Get the free SciTE editor
  2. Install SciTE – (I downloaded the .zip version – so I simply unzipped to c:/program files/wscite)
  3. Download the syntax files I’ve posted
  4. Untar / UnZip the syntax file archive into a temp directory (they’re zipped in the tar/gzip format); to unzip in WinXP you may need a tool like WinZip (commercial) or 7-zip (free)
  5. Copy the link and spec folders into your c:/program files/wscite install directory

Too Simple?

How to Install Kate Syntax Files

Saturday, April 26th, 2008

So I’ve got the SystemVerilog syntax files posted – but I never told you how to install them. Here’s a quick rundown:

  1. Ensure that your linux box has the kate editor: which kate
  2. if not use your favorite installer (apt-get, yum, etc.) to get kate — kate comes with the KDE desktop
  3. Download the syntax files I’ve posted
  4. Untar / UnZip the syntax file archive into a temp directory (they’re zipped in the tar/gzip format): tar -vxzf SyntaxFiles-Kate.rN.tar.gz
  5. Install the default set of kate syntax files (this creates the syntax file path that we’ll be copying into): launch kate then select Settings, Configure Kate…, Highlighting, Download, Install
  6. Copy the xml file to the kate syntax files directory: cp -p *.xml ~/.kde/share/apps/katepart/syntax

Easy!

How to Install Crimson Editor Syntax Files

Saturday, April 26th, 2008

So I’ve got the SystemVerilog syntax files posted – but I never told you how to install them. Here’s a quick rundown:

  1. Get the free crimson editor (either the official release or the updated (and currently beta) emerald version)
  2. Install crimson – typically installed to c:/program files/cedit
  3. Download the syntax files I’ve posted
  4. Untar / UnZip the syntax file archive into a temp directory (they’re zipped in the tar/gzip format); to unzip in WinXP you may need a tool like WinZip (commercial) or 7-zip (free)
  5. Copy the link and spec folders into your c:/program files/cedit install directory

The archive has the following folders – link, schemes, and spec; these folders correspond to the folders in the cedit install folder. Link has the file extension to syntax file specfication and key mapping (.sv to .spc and .key). The spec file has both the .spc specification fils and the .key key files. (In the schemes folder I’ve tossed in my favorite color scheme for Crimson – “reversed blue.”)

Enjoy!