Repository navigation
Supported Languages
Underground Trading edited this page Sep 14, 2025
·
1 revision
HeadForge supports 25+ programming languages with proper comment syntax and formatting.
| Language | Simple Header | Complete Header | Comment Style | File Extensions |
|---|---|---|---|---|
| JavaScript | β | β | // |
.js, .jsx, .mjs
|
| TypeScript | β | β | // |
.ts, .tsx
|
| Python | β | β | # |
.py, .pyw
|
| Java | β | β | // |
.java |
| C++ | β | β | // |
.cpp, .cc, .cxx
|
| C# | β | β | // |
.cs |
| Go | β | β | // |
.go |
| Rust | β | β | // |
.rs |
| PHP | β | β | // |
.php, .phtml
|
| Ruby | β | β | # |
.rb |
| Swift | β | β | // |
.swift |
| Kotlin | β | β | // |
.kt, .kts
|
| Dart | β | β | // |
.dart |
| R | β | β | # |
.r, .R
|
| MATLAB | β | β | % |
.m |
| SQL | β | β | -- |
.sql |
| HTML | β | β | <!-- --> |
.html, .htm
|
| CSS | β | β | /* */ |
.css |
| SCSS | β | β | // |
.scss |
| Less | β | β | // |
.less |
| XML | β | β | <!-- --> |
.xml |
| YAML | β | β | # |
.yml, .yaml
|
| JSON | β | β | // |
.json |
| Markdown | β | β | <!-- --> |
.md, .markdown
|
| Shell | β | β | # |
.sh, .bash, .zsh
|
- ES6+ Support - Modern JavaScript features
- JSX/TSX - React component headers
- Module Support - ES6 modules and CommonJS
- Type Definitions - TypeScript type information
- PEP 8 Compliance - Follows Python style guidelines
- Docstring Support - Python documentation strings
- Package Structure - Python package headers
- Virtual Environment - Environment information
- Package Declaration - Java package structure
- Class Documentation - Javadoc-style headers
- Import Statements - Required imports
- Annotation Support - Java annotations
- Header Guards - Include guard protection
- Namespace Support - C++ namespace declarations
- Preprocessor Directives - C preprocessor support
- Standard Library - Standard library includes
- HTML5 - Modern HTML standards
- CSS3 - Latest CSS features
- Responsive Design - Mobile-first approach
- Accessibility - WCAG compliance
Each language uses its appropriate comment syntax:
-
Line Comments -
//,#,-- -
Block Comments -
/* */,<!-- --> - Documentation - Language-specific doc formats
- Indentation - Language-appropriate indentation
- Line Length - Configurable line length limits
- Spacing - Consistent spacing and alignment
- Capitalization - Language-specific conventions
- Simple Headers - Basic information only
- Complete Headers - Full project details
- Custom Templates - User-defined formats
- Project Templates - Project-specific headers
// Project: My Awesome App
// Author: John Doe
// Description: A modern web application
// Version: 1.0.0
// Created: 2024-01-15
// Updated: 2024-01-20
// License: MIT
// Repository: https://github.com/user/repo# Project: My Awesome App
# Author: John Doe
# Description: A modern web application
# Version: 1.0.0
# Created: 2024-01-15
# Updated: 2024-01-20
# License: MIT
# Repository: https://github.com/user/repo// Project: My Awesome App
// Author: John Doe
// Description: A modern web application
// Version: 1.0.0
// Created: 2024-01-15
// Updated: 2024-01-20
// License: MIT
// Repository: https://github.com/user/repo<!--
Project: My Awesome App
Author: John Doe
Description: A modern web application
Version: 1.0.0
Created: 2024-01-15
Updated: 2024-01-20
License: MIT
Repository: https://github.com/user/repo
-->Want to add support for a new language? Here's how:
- Add language to
language-configs.ts - Define comment syntax
- Set file extensions
- Configure formatting rules
- Create simple header template
- Create complete header template
- Test with sample code
- Validate syntax
- Test with various file types
- Verify comment syntax
- Check formatting
- Validate output
- Update language list
- Add examples
- Document features
- Update changelog
- Language Configurations - Source code
- Template System - How templates work
- Customization - Advanced customization
- Contributing - How to contribute
Need help with a specific language? Check our FAQ or ask the community!