Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17261 Discussions

Best way to copy code from Quartus II into MS Word

Altera_Forum
Honored Contributor II
4,011 Views

What is the best way to copy the code from Quartus II into Microsoft World and still get the right colors and formatting?

0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
2,704 Views

Hi,  

 

VHDL / Verilog code is pure text, syntax highlights are not embedded, if you copy code the formatting (tabs etc) will be presurved but thats all. 

 

The colours as seen in the Quartus II text editor are added by the editor and are not embedded in the text (as with most other HDL editors)
0 Kudos
Altera_Forum
Honored Contributor II
2,704 Views

Thank you for your reply QuartusPenguin! 

Maby someone should make a website that enable higlighting for the code;)
0 Kudos
Altera_Forum
Honored Contributor II
2,704 Views

i can see the usefulness of something like that for documentation

0 Kudos
Altera_Forum
Honored Contributor II
2,704 Views

wow, vim will do this quite nicely. use :TOhtml and it will create an HTML markup including syntax highlighting

0 Kudos
Reply