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