Top 1,000 Features Creators Resources Extensions Blog Explorer CSV Download
GitHub icon

Line Comments

< >
Example from 205 languages: JavaScript, C, Java, PHP, Go, TypeScript, C#, Swift, Rust, Scala, Kotlin, Objective-C, Dart, Solidity, D, Reason, Haxe, Groovy, Chapel, F#, Pug, HCL, Protocol Buffers, Deno, JSON5, Yacc, OpenCL, ANTLR, odin, Delphi, V, Stata, Verilog, FLUX, Ballerina, Squirrel, Wren, Less, PEG.js, Flow, Zephir, DOT, Lex, Vala, Koka, Jsonnet, Eve, C3, QML, Bicep, Halide, Dafny, Processing, mlir, Hack, POV-Ray SDL, Ceylon, SystemVerilog, Taichi, Click, Cue, ECL, JAI, Scilab, idyll, Clean, eC, PowerBuilder, Felix, Ron, Bison, Nemerle, BCPL, CIL, AspectJ, SuperCollider, Observable, Dylan, Xojo, SCSS, Flow9, SugarSS, Modelica, xBase, ATS, Scroll, Veryl, Io, Fantom, Pike, Lasso, PAWN, mun-lang, OpenSCAD, P4, Whiley, JSON with Comments, Cg, Angelscript, IGOR Pro, Ch, Clipper, Objective C++, dlvm, JADE, Logos, Java Bytecode, Argdown, Objective-J, Alloy, Harbour, Cypher Query Language, Mask, Volt, Ligo, Apex, CIL, Falcon, MQL5, DAX, Concise Encoding, Spatial, Croc, OX, Script.NET, Linden Scripting Language, Not Quite C, spiral, LPC, DM, NetLinx, Jule, Game Maker Language, HuJSON, Strips, BETA, Cycript, Sophia, Vale, Slice, CIR, LoomScript, Hocon, MiniD, Cell, CartoCSS, Nymph, Type Language, gentee, Not eXactly C, Adventure Game Studio Script, Maya Embedded Language, ShaderLab, KRL, kai, Frink, tht, XBase++, silk, OpenVera, Heron, MVEL, JS++, NS Basic, Yoix, Lite-C, Rescript, winxed, xxl, Judoscript, Language Server Index Format, neeilang, Rust MIR, FutureBASIC, Tuple space, SIL, PowerQuery M, Q#, owen-lang, SimCode, OEM, Ion, Pnuts, Fable, Action Code Script, hilvl, Operational Control Language, beads-lang, fizz, flagship, JSL, epsilon, OptimJ, holyc, Treelang, verifpal, Finite State Language, Soy, StruQL, CFScript, ctalk-lang, dslx, ddfql, rbscript, sora
// A comment
# A comment
-- A comment
% A comment
; A comment
Example from 5 languages: SAS, ABAP, SNOBOL, Refal, ActiveVFP
* A comment
Example from 1 languages: COBOL
MOVE ABC to XYZ *> This is a comment.
' A comment
Example from 1 languages: Fortran
C A comment
Example from 1 languages: HAML
-# A comment
Example from 1 languages: Forth
\ A comment
Example from 1 languages: APL
⍝ A comment
Example from 1 languages: J
NB. A comment
Example from 2 languages: BASIC, Batchfile
REM A comment
Example from 1 languages: Slope
; I am a comment
! A comment
Example from 1 languages: K
/ A comment
Example from 1 languages: TLA
\* A comment
Example from 1 languages: popr
__ A comment
Example from 1 languages: High Level Assembly
// comment
Example from 1 languages: Cyber
-- Counts iterations.
Example from 1 languages: HOPE
--- A comment
Example from 1 languages: Mouse
~ A comment
Example from 1 languages: Uniform eXchange Format
#<A comment>
Example from 1 languages: Quaint
;; A comment
Example from 1 languages: Wax
; a comment
Example from 1 languages: Lexon
COMMENT A comment
Example from 1 languages: GraphQL Schema Definition Language
“”” A comment
*

Languages with Line Comments include JavaScript, C, Python, Java, Perl, Ruby, PHP, Go, TypeScript, SQL, C#, R, Bash, PowerShell, Swift, Rust, Scala, Lua, MATLAB, Haskell, Kotlin, Clojure, Elixir, CoffeeScript, Objective-C, SAS, Julia, Erlang, Prolog, Dart, COBOL, Visual Basic, Ada, Solidity, YAML, Nim, TOML, Racket, Fortran, PostgreSQL, Zig, Crystal, D, Reason, MySQL, Elm, Scheme, Haxe, GraphQL, WebAssembly, Groovy, awk, Tex, Chapel, F#, Pug, LLVM IR, ClojureScript, PureScript, HCL, VHDL, HAML, Idris, Protocol Buffers, Forth, Make, Visual Basic .NET, Ini, Deno, JSON5, Yacc, APL, ARM, OpenCL, LaTeX, J, Red, fish, Embedded Crystal, Maple, ANTLR, odin, Lean, Delphi, sed, V, ABAP, Stata, Tcl, Verilog, Pony, ActionScript, FLUX, KaTeX, Dhall, BASIC, Hy, Ballerina, Fennel, starlark, AutoHotkey, Squirrel, PostScript, Wren, Less, Common Lisp, Cap'n Proto, Smali, Eiffel, API Blueprint, PEG.js, MoonScript, Flow, MUMPS, Zephir, VBScript, NetLogo, Frege, DOT, Lex, Nginx, carp, Logo, Pig Latin, GNU Octave, M4, Vala, Koka, Batchfile, PL/SQL, Jsonnet, Eve, Terra, C3, QML, PRQL, Bicep, Halide, Nearley, SPARQL, Dafny, Processing, MIPS architecture, mlir, Pandas, Futhark, Agda, VBA, Emacs Lisp, Hack, POV-Ray SDL, Ceylon, Hjson, Applescript, AMPL, QBasic, SystemVerilog, YASnippet, progsbase, Expect, x86 Assembly, unison, Taichi, GAP, Click, Cue, NumPy, ECL, JAI, Cryptol, Scilab, Slope, mgmt, idyll, AutoIt, wisp, Golo, AGC, WDL, Simula, HLSL, GLSL, Clean, eC, Transact-SQL, Boo, PowerBuilder, Felix, Sage, CWL, Ron, Bison, Mercury, Nemerle, BCPL, Ring, CIL, AspectJ, K, SuperCollider, Observable, Mu, Dylan, Datalog, Oz, Xojo, TLA, datascript, Nit, Logica, SCSS, Flow9, REBOL, Gosu, SugarSS, Modelica, Shen, Raku, JCL, xBase, ATS, CLIPS, Scroll, Fancy, Veryl, Io, Fantom, NSIS, LFE, Pike, ArkScript, NCAR Command Language, NewLisp, X10, Lasso, Java Properties, LilyPond, SourcePawn, PAWN, mun-lang, OpenSCAD, Turing, P4, BlitzMax, PL/pgSQL, Whiley, Icon, Csound, E, Filebench WML, clay, Reia, PureBasic, FoxPRO, LiveScript, Dockerfile, JSON with Comments, Nix, Cg, Angelscript, IGOR Pro, Ch, LiveCode, Clipper, Objective C++, dlvm, lispyscript, JADE, Monkey, Gherkin, Logos, Euphoria, Java Bytecode, GDScript, Guile, Argdown, SNOBOL, Objective-J, Classroom Object Oriented Language, BlitzBasic, Ragel, Alloy, Harbour, spry, Gettext Catalog, Cypher Query Language, Vigil, Mask, Ren'Py, Volt, Ligo, PicoLisp, Apex, CIL, dex, Falcon, MQL5, Pan, Praat Script, DAX, Concise Encoding, Spatial, Netwide Assembler, OCL, Tea, Croc, OX, Augmented Backus-Naur Form, C shell, Gerbil Scheme, Seed7, neut, muPad, JSLT, popr, Script.NET, UNLAMBDA, Linden Scripting Language, Not Quite C, spiral, Opal, High Level Assembly, Gentoo Ebuild, LPC, Cyber, DM, NetLinx, BitBake, RELAX NG, Jule, NestedText, Eclipse Command Language, Game Maker Language, S-PLUS, Jasmin, HuJSON, PEG, HOPE, Strips, FloScript, Dc, SETL, Redcode, Structured Query Reporter, Spin, BETA, ldpl, Cycript, HiveQL, SMT, Unicon, Sophia, Z, Vale, Slice, CIR, Sieve mail filtering language, Rc, LoomScript, Hocon, PIC, Sather, storyscript, MiniD, Cell, CartoCSS, Nymph, Ezhil, Grammatical Framework, LookML, Refal, SRecode Template, Type Language, pointless, gentee, Not eXactly C, Brightscript, Adventure Game Studio Script, Maya Embedded Language, GCC Machine Description, ShaderLab, KRL, BLISS, QB64, Charity, Savi, Parser 3, Mouse, HXML, Action!, kai, Frink, Aldor, PowerBASIC, S-algol, tht, XBase++, KiXtart, Alpine Abuild, silk, manool, Project Mentat, OpenVera, Uniform eXchange Format, Wart, Heron, MVEL, JS++, EuLisp, Yet Another Scripting Language, NS Basic, Mary, Yoix, Recfiles, Easytrieve, parasail, Lite-C, Aardvark, Rescript, Fjölnir, winxed, Quaint, xxl, Judoscript, PROMAL, carth, Bel, Language Server Index Format, neeilang, Rust MIR, taf, Rita, FutureBASIC, VHDL-AMS, Pawn, Boron, Tuple space, Xbasic, Wax, SIL, PowerQuery M, Amazon Redshift, True BASIC, Claro, Q#, owen-lang, SimCode, BuddyScript, OEM, Ion, Ren, Pnuts, MACRO-10, ISETL, ActiveVFP, Fable, Action Code Script, omega, z80, blz, CLOS, StarOffice Basic, hilvl, AmbientTalk, Operational Control Language, Atomese, beads-lang, fizz, flagship, Guix Workflow Language, PromQL, Zimpl, ThinBasic, JSL, boa, Boogie, epsilon, Lexon, Plot, rosette-lang, Spice, stella, OptimJ, holyc, Treelang, XBLite, lain, Sweet Expressions, verifpal, Caché Basic, FML, Parrot BASIC, Module Management System, WxBasic, Finite State Language, Literate Agda, Reactive Plan Language, Soy, Bla, luau, Turbo Basic, ca65 Assembly, GraphQL Schema Definition Language, rbs, USD, Robots.txt, StruQL, SubX, Yedalog, CFScript, ctalk-lang, dslx, Portable Bit Map Format, Netpbm grayscale image format, ppm-format, Creative Basic, PacmanConf, PkgConfig, wescheme, ddfql, turnstile, rbscript, tremor-query, Lighttpd configuration file, sora, zephyr-asdl

*

Languages without Line Comments include HTML, CSS, JSON, XML, Mathematica, Markdown, Pascal, OCaml, SPSS, Smalltalk, SVG, Standard ML, XQuery, ML, Wolfram Language, Regular Expressions, Modula-2, Rexx, OWL, Modula-3, Object Pascal

*

View all concepts with or missing a hasLineComments measurement

*

Read more about Line Comments on the web: 1.

View source

- Build the next great programming language · About · Acknowledgements · Part of the World Wide Scroll