I am using Indesign CC to create a book on HTML programming. I have used TextFrames to add blocks of code and markup. When I generate an ePub out of it, the code blocks and markup are generated without indentation. Everything is left aligned.
However when I export the textframe as an image, the markup comes with indentation but the file size is way too big and the code is obviously not selectable.
What options do I have here? Here's an example of the kind of code I am dealing with:
<body> <table border="1"> <thead> <tr> <th class="c1">ABC</th> <th class="c2">PQR</th> <th class="c3">XYZ</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>Book</td> <td>Top</td> </tr>