Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Line Comments

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

*

Languages without Line Comments include HTML, CSS, XML, JSON, Mathematica, Markdown, Pascal, SPSS, OCaml, Smalltalk, SVG, Standard ML, XQuery, ML, Regular Expressions, Wolfram Language, 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.

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements