Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Best way to copy code from Quartus II into MS Word

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

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you for your reply QuartusPenguin!

    Maby someone should make a website that enable higlighting for the code;)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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