Skip to content

Syntax highlighting in ebook #63

Description

Hi! It looks like you compiled the ebook with LaTeX. If so, do you mind using lstinputlusting to include the source code as it also offers syntax highlighting:

\usepackage{listingsutf8}
\lstinputlisting[language=C++, numbers=left, linerange=44-71, firstnumber=44]{main.cpp}

Regards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions