- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
How to Copy and Paste Source Code From Xilinx ISE to Microsoft Word with the keyword colors ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-17-2009 11:17 AM
Is there any way to copy the source code from Xilinx ISe and paste it Microsoft Word and KEEPING the colors as they are???
Because whenever I paste it to MS Word the colors are lost...
Any help would be appreciated..
Thanks...
Re: How to Copy and Paste Source Code From Xilinx ISE to Microsoft Word with the keyword colors ?
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-20-2009 02:19 PM - edited 06-06-2009 04:09 PM
To the best of my abilty to detimine, as of ISE 10.1.3 there is no way to do that.
However, I've written a macro that can re-colorize the source code just like ISE does. (It currently only works for (System)Verilog code).
The results of the macro will hopefully match ISE's coloring exactly. However, the macro is not based on ISE's code, so there could be differences.
If you notice any please let me know.
The macro is easy to use. Just paste the source code into word,and set up the font and fontsize you desire.
Then select the verilog code and run the macro.
But before you can use the macro you must install it.That is also pretty easy:
- Download the attched zip file.
- Open text file inside using notepad.
- Selectall the text and copy it
- Open Microsoft Word.
- Hold Alt and press the F8 key. (This will open the macro window.)
- In the text box type "VerilogColor".
- Press the Create button.
- A new window appears.
- Select all the lines from "Sub VerilogColor()" to "End Sub" (about 10 lines).
- Paste the text you copied.
- Choose "Select All" from notepad's edit menu.
If you are not familar with running macros the easiest way to run the macro is to open the Macro window with Alt+F8, find the macro in the list and press the run button.
Re: How to Copy and Paste Source Code From Xilinx ISE to Microsoft Word with the keyword colors ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-22-2009 12:26 PM
You can use Notepad++ or PSPad.
In NP++ you can find this under Plugins->Npp Export.
You may want to customize the colors as you like before exporting.











