Skip to content

Code Snippet for HubSpot

Powerd by GitHub Gist

Embed real GitHub Gists directly into your HubSpot pages.
System theme support, flexible styling, and full multi-file integration.

⚑ Why Code Snippet?

  • Show real code, not screenshots
  • Support for multiple files inside a single Gist
  • Option to display only one file when a Gist contains many
  • Fast loading with built-in caching

🎨 Flexible Styles

  • System appearance support: automatically adapts to light 🌞 or dark πŸŒ™ mode
  • Manual override: always light or always dark
  • Rounded corners for a modern look
  • Optional footer with file name and GitHub link

πŸ” Control the Lines

  • Display only specific lines
  • Highlight important lines or ranges
  • Collapse long code blocks with expand option

πŸ“‚ Multi-File Support

  • Show the entire Gist or only a single file
  • Perfect for tutorials, documentation, or code libraries

πŸš€ Built for Modern Web

The Code Snippet (GitHub Gist) module loads only when needed β€” and with smart caching, repeated Gists are reused instantly.
Your HubSpot pages stay fast, lean, and developer-friendly, with custom styling and a graceful fallback link.

Ready to upgrade your docs & articles?

Give your HubSpot pages developer-grade power with GitHub Gist embeds.

Get on HubSpot Marketplace

Want the full recipe? Check the documentation.