code-excerpt extracts specific lines or regions from source code files. It's useful for generating code snippets in documentation, tutorials, or error messages. Its primary function is to accept a filename and line number range, then return the corresponding code block, handling various edge cases like file not found or invalid range. Supports basic syntax highlighting. Provides clean and easily integrates into other tools for programmatically handling source code.