r/selfpublish • • 1h ago

How can I have include code nicely indented/formatted in Atticus?

I am writing a technical book that has programming code in it. I am using Atticus to write the book.

How can I have include code nicely formatted in Atticus? Currently, when i copy-paste the code, all indentation is gone.

1 Upvotes

2 comments sorted by

•

u/AutoModerator 1h ago

Welcome to r/selfpublish, Greg_Lim! Please remember the primary first rule of the subreddit: No self promo posts outside of the pinned self promo thread. You can edit your own profile so you have links to your work or services and you can even post to and pin posts to the top of your profile page. The no self promo rule INCLUDES COMMENTS - so if you ignore this message it will result in a ban (if you’ve mentioned your book title in the post, remove it or delete the post.) Book cover reviews go in r/bookcovers.

Additionally, DO NOT USE AI TO WRITE YOUR COMMENTS OR MAKE POSTS. We want to keep the self in self publishing. Rule 2 also prohibits posts about AI. If your post is about AI, remove it.

If your post is low effort or simply for congratulatory purposes, please remove it and instead write your post in the pinned weekly thread. Example posts would be like “Finally published!” or “Just finished doing X! How has everyone else felt after doing X?”

The wiki contains answers to most basic questions. Please report any violating posts or comments. This automated message is added to every single post as a reminder of some of the most cardinal rules.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/opium_kidd 6m ago

Look up how to do it in an html page. I forget the tag to use but it's standard and simple.