Skip to content

Supported Languages

Underground Trading edited this page Sep 14, 2025 · 1 revision

🌐 Supported Languages

HeadForge supports 25+ programming languages with proper comment syntax and formatting.

πŸ“‹ Complete Language List

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

🎯 Language-Specific Features

JavaScript/TypeScript

  • ES6+ Support - Modern JavaScript features
  • JSX/TSX - React component headers
  • Module Support - ES6 modules and CommonJS
  • Type Definitions - TypeScript type information

Python

  • PEP 8 Compliance - Follows Python style guidelines
  • Docstring Support - Python documentation strings
  • Package Structure - Python package headers
  • Virtual Environment - Environment information

Java

  • Package Declaration - Java package structure
  • Class Documentation - Javadoc-style headers
  • Import Statements - Required imports
  • Annotation Support - Java annotations

C/C++

  • Header Guards - Include guard protection
  • Namespace Support - C++ namespace declarations
  • Preprocessor Directives - C preprocessor support
  • Standard Library - Standard library includes

Web Technologies

  • HTML5 - Modern HTML standards
  • CSS3 - Latest CSS features
  • Responsive Design - Mobile-first approach
  • Accessibility - WCAG compliance

πŸ”§ Customization Options

Comment Styles

Each language uses its appropriate comment syntax:

  • Line Comments - //, #, --
  • Block Comments - /* */, <!-- -->
  • Documentation - Language-specific doc formats

Formatting

  • Indentation - Language-appropriate indentation
  • Line Length - Configurable line length limits
  • Spacing - Consistent spacing and alignment
  • Capitalization - Language-specific conventions

Templates

  • Simple Headers - Basic information only
  • Complete Headers - Full project details
  • Custom Templates - User-defined formats
  • Project Templates - Project-specific headers

πŸ“ Example Headers

JavaScript

// 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

Python

# 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

Java

// 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

HTML

<!--
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
-->

πŸš€ Adding New Languages

Want to add support for a new language? Here's how:

1. Language Configuration

  • Add language to language-configs.ts
  • Define comment syntax
  • Set file extensions
  • Configure formatting rules

2. Template Creation

  • Create simple header template
  • Create complete header template
  • Test with sample code
  • Validate syntax

3. Testing

  • Test with various file types
  • Verify comment syntax
  • Check formatting
  • Validate output

4. Documentation

  • Update language list
  • Add examples
  • Document features
  • Update changelog

πŸ“š Resources


Need help with a specific language? Check our FAQ or ask the community!