For "Stratospheric - From Zero to Production with Spring Boot and AWS" (https://stratospheric.dev/) we used IntelliJ IDEA.
For a technical ebook with lots of code samples using our trusted IDE just was the natural choice.
For a technical ebook with lots of code samples using our trusted IDE just was the natural choice.
As for the code samples we simply used Markdown's backtick syntax: https://www.markdownguide.org/basic-syntax/#code