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

Line Comments

< >
Example from 207 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, Wa-lang, DOT, Koka, Zephir, Vala, Lex, Jsonnet, Dafny, Bicep, QML, Eve, Halide, CIR, Processing, mlir, Taichi, POV-Ray SDL, Hack, Ceylon, SystemVerilog, Ron, Cue, PowerBuilder, ECL, Click, Scilab, idyll, JAI, Observable, Clean, eC, Nemerle, Felix, Bison, Scroll, nomnoml, BCPL, CIL, AspectJ, SuperCollider, Dylan, Xojo, SCSS, SugarSS, Flow9, xBase, mun-lang, Modelica, Veryl, ATS, Io, Fantom, Pike, PAWN, OpenSCAD, Argdown, Whiley, Lasso, Objective C++, P4, JSON with Comments, IGOR Pro, Cg, 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, Fortran, Ada, 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, Eiffel, Cap'n Proto, PEG.js, MUMPS, MoonScript, Wa-lang, NetLogo, API Blueprint, DOT, Koka, Zephir, Vala, Lex, Jsonnet, Logo, Frege, VBScript, M4, Pig Latin, carp, Dafny, Batchfile, Bicep, PL/SQL, Nginx, QML, Nearley, Terra, GNU Octave, Eve, Halide, CIR, Futhark, MIPS architecture, Agda, Processing, mlir, SPARQL, Taichi, VBA, AMPL, Emacs Lisp, POV-Ray SDL, Hjson, Hack, unison, GAP, Lil, YASnippet, mgmt, Expect, Applescript, Ceylon, SystemVerilog, Ron, QBasic, NumPy, x86 Assembly, progsbase, Cue, Cryptol, PowerBuilder, ECL, HLSL, Click, Scilab, idyll, GLSL, WDL, TLA+, Slope, K, JAI, AutoIt, Observable, Clean, eC, Simula, wisp, Golo, Nemerle, Transact-SQL, Felix, datascript, CWL, Bison, Scroll, AGC, Ring, Sage, Boo, nomnoml, Mercury, Logica, BCPL, Datalog, CIL, AspectJ, SuperCollider, Mu, Dylan, Xojo, SCSS, SugarSS, REBOL, Flow9, X10, Raku, ArkScript, Wax, Oz, JCL, Nit, Gosu, xBase, mun-lang, Modelica, Shen, Veryl, ATS, NewLisp, Cyber, LiveScript, Fancy, CLIPS, LFE, Io, SourcePawn, Fantom, NCAR Command Language, NSIS, Pike, PAWN, PL/pgSQL, Filebench WML, OpenSCAD, Argdown, Dockerfile, Icon, Reia, BlitzMax, Turing, Whiley, Lasso, LilyPond, Nix, Csound, Objective C++, clay, P4, E, PureBasic, Java Properties, FoxPRO, JSON with Comments, lispyscript, Praat Script, LiveCode, Euphoria, IGOR Pro, Cg, Angelscript, Clipper, dlvm, Logos, Gherkin, GDScript, Ch, JADE, Monkey, Guile, SNOBOL, spry, neut, BlitzBasic, Objective-J, Croc, Harbour, Classroom Object Oriented Language, Spatial, JSLT, Volt, Ragel, Concise Encoding, Ligo, Alloy, dex, CIL, Pan, Apex, Ren'Py, DAX, MQL5, Mask, Jule, Cypher Query Language, Falcon, Vigil, Java Bytecode, Gettext Catalog, PicoLisp, OX, spiral, C shell, popr, 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, PIC, Gerbil Scheme, 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, Refal, PEG, SRecode Template, Type Language, Brightscript, Adventure Game Studio Script, Not eXactly C, Maya Embedded Language, KRL, GCC Machine Description, ShaderLab, tht, Project Mentat, Charity, BLISS, kai, Parser 3, Wart, Action!, Frink, QB64, HXML, Mouse, SAKO, silk, manool, Aldor, S-algol, Heron, Uniform eXchange Format, Recfiles, Aardvark, Yet Another Scripting Language, KiXtart, JS++, OpenVera, Alpine Abuild, XBase++, 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, PROMAL, FutureBASIC, SIL, PowerQuery M, OEM, VHDL-AMS, Q#, SimCode, Ion, Tuple space, Fable, BuddyScript, 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