Skip to main content
table of contents
Appendix A. File naming conventions
| Language | File Extension | Example | Rules & Conventions |
|---|---|---|---|
| Java | .java | Main.java | - File name must match the public class defined in the file |
| - Usually CamelCase | |||
| C++ | .cpp | main.cpp | - C++ Programming File Organization |
| Python | .py | main.py | - Often lowercased |
| - Pep8 Style Guidelines | |||
| Scheme | .scm | main.scm | - Guile Scheme Manual §6.18.5 Compiling Scheme Code |
| Markdown | .md, .markdown | foo.md | - Markdown Syntax |
| HTML | .htm, .html | index.html | - Hypertext Markup Language |
| - Include doctype | |||
| CSS | .css | style.css | - Cascading Style Sheets |
| XML | .xml | pom.xml | - Extensible Markup Language |
| JavaScript | .js | script.js | |
| Haskell | .hs | Main.hs | |
| Shell Script | .sh | build.sh | - add a shebang at the the top, #!/bin/sh |