How to add spoiler tags, edit posts, add images etc. How to - a user's guide to the new version of Boards
Mods please check the Moderators Group for an important update on Mod tools. If you do not have access to the group, please PM Niamh. Thanks!

Inserting C++ code (as reference) into LyX

  • #1
    Closed Accounts Posts: 5,132 Killer Pigeon

    Hey there,

    I'm writing a report using LyX and I'd like to insert a couple of lines of C++ code (from Dev-C++) into an Appendix, just for reference.

    I've tried exporting the C++ to HTML and then converting the HTML to a jpeg file and then insert it into the LyX document but it's very small and looks quite messy.

    Does anyone know of another way to do this?