HN 표시: Merrilin.ai – 마침내 책의 코드 블록
hackernews
|
|
💼 비즈니스
#ai 서비스
#merrilin.ai
#개발 도서
#출판
#코드 서식
#hn
#책
#코드
요약
Show HN: 책 속 코드 블록, 드디어 에디터처럼 기존의 기술 서적들은 PDF나 EPUB 형식을 막론하고 코드 블록을 흑백으로 출력하거나 줄 바꿈이 어색하게 처리되는 등 시각적으로 가독성이 떨어지는 문제가 있었습니다. 이러한 문제를 해결하기 위해 개발된 'Merrilin.ai'는 책 내의 코드를 추출하여 사용자가 원하는 테마로 색상 입혀진 에디터 형식으로 아름답게 렌더링해 줍니다. 이 도구는 PDF에서는 대화 상자를 통해, EPUB에서는 페이지 내에서 직접 코드를 강조하여 보여주며, 67가지 테마와 모든 주요 프로그래밍 언어를 지원하여 독자가 훨씬 쾌적하게 콘텐츠를 읽을 수 있도록 돕습니다.
왜 중요한가
개발자 관점
검토중입니다
연구자 관점
검토중입니다
비즈니스 관점
검토중입니다
본문
Why Does Code Look Horrible in Books? I’ll say it. Code looks like shit in books. Publishers strip out all the color, they seldom add line numbers, they wrap code at weird spots, trim it even, and programming books look terrible. I have always used PDF for tech books. It’s for a simple reason, really. Code blocks look ugly in EPUB. Not that they look great in PDF either. It depends on the publisher, and there are a lot of variations in how they choose to render code blocks, honestly. Most just choose to render them indentically. I never understood why though, at least in PDF, they should render with color. In EPUB, you know that there’s a lot of the styling that happens at the client-side. I wanted my code blocks to look like the image above, like it would in an editor. That’s an editor, right? Right? No. Merrilin, now with support for coding books I can now proudly say that Merrilin.ai supports tech books across 67 themes. It renders code blocks beautifully, extracting them even out of PDFs and shows them in an editor-style dialog. Or, copy directly to your clipboard! But wait, in EPUBs, you don’t even need to open a dialog to see the code in color. Merrilin renders codeblocks directly in the EPUBs, supporting all known languages directly. This works across themes, so if you’re reading books on software programming, Merrilin now lets you read them and see the code beautifully, like you would in an editor.