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, Pug, Groovy, Chapel, F#, HCL, JSON5, Deno, Protocol Buffers, Yacc, odin, OpenCL, ANTLR, V, Flow, Delphi, Stata, Verilog, Ballerina, FLUX, Squirrel, C3, Wren, Less, PEG.js, Koka, DOT, Zephir, Vala, Lex, Jsonnet, Dafny, Bicep, QML, Eve, Halide, Processing, mlir, CIR, Taichi, POV-Ray SDL, Hack, Ceylon, SystemVerilog, Cue, Ron, ECL, PowerBuilder, Click, Scilab, idyll, JAI, Observable, Clean, eC, Felix, Bison, Nemerle, Scroll, nomnoml, BCPL, CIL, SuperCollider, AspectJ, 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, Clipper, Angelscript, IGOR Pro, dlvm, Logos, JADE, Ch, Objective-J, Croc, Spatial, Harbour, Volt, Concise Encoding, Ligo, Alloy, CIL, Apex, MQL5, DAX, 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, ShaderLab, KRL, tht, kai, Frink, silk, Heron, OpenVera, JS++, XBase++, MVEL, Yoix, NS Basic, xxl, winxed, Rescript, 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, verifpal, holyc, 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, Lua, MATLAB, Kotlin, Haskell, Clojure, CoffeeScript, Elixir, Erlang, SAS, Objective-C, Prolog, Julia, COBOL, Dart, Racket, Solidity, WebAssembly, Visual Basic, Zig, YAML, Nim, Ada, Fortran, TOML, PostgreSQL, Crystal, MySQL, Reason, D, Elm, GraphQL, Haxe, Scheme, awk, Pug, Tex, Groovy, Chapel, F#, Gleam, LLVM IR, HCL, ClojureScript, PureScript, HAML, VHDL, Tcl, JSON5, Idris, Forth, Deno, Visual Basic .NET, Protocol Buffers, Ini, ARM, Yacc, Make, APL, odin, Embedded Crystal, OpenCL, LaTeX, Red, J, fish, Maple, starlark, Lean, ANTLR, sed, V, Flow, Fennel, KaTeX, Dhall, Delphi, Stata, ABAP, Pandas, Verilog, ActionScript, Pony, Ballerina, PRQL, Hy, FLUX, BASIC, Squirrel, C3, Wren, AutoHotkey, PostScript, Less, Common Lisp, Smali, Cap'n Proto, Eiffel, PEG.js, MoonScript, MUMPS, API Blueprint, NetLogo, Koka, DOT, Zephir, Vala, Lex, Jsonnet, VBScript, Frege, Logo, Pig Latin, M4, Dafny, carp, Batchfile, Bicep, PL/SQL, Nginx, Nearley, Terra, QML, GNU Octave, Eve, Halide, Futhark, MIPS architecture, Agda, Processing, SPARQL, mlir, CIR, Taichi, VBA, AMPL, Emacs Lisp, POV-Ray SDL, Hjson, Hack, unison, GAP, Lil, YASnippet, mgmt, Applescript, Ceylon, SystemVerilog, Expect, QBasic, NumPy, x86 Assembly, progsbase, Cue, Ron, Cryptol, ECL, PowerBuilder, Click, Scilab, HLSL, idyll, WDL, GLSL, TLA+, Slope, JAI, AutoIt, K, Observable, Clean, wisp, Simula, eC, Golo, Transact-SQL, Felix, CWL, datascript, AGC, Bison, Ring, Nemerle, Sage, Boo, Scroll, nomnoml, Mercury, Logica, BCPL, CIL, SuperCollider, AspectJ, Datalog, Mu, Dylan, Xojo, SCSS, SugarSS, Flow9, REBOL, ArkScript, Raku, Wax, Oz, Nit, JCL, Gosu, mun-lang, Modelica, xBase, Shen, Veryl, ATS, NewLisp, Cyber, Fancy, LiveScript, CLIPS, SourcePawn, Io, LFE, NCAR Command Language, Fantom, NSIS, Pike, PAWN, Filebench WML, OpenSCAD, X10, Argdown, PL/pgSQL, Reia, BlitzMax, Turing, Icon, Dockerfile, Whiley, Lasso, LilyPond, Csound, Nix, clay, P4, E, Objective C++, Java Properties, PureBasic, FoxPRO, JSON with Comments, lispyscript, Praat Script, Euphoria, LiveCode, Cg, Clipper, Angelscript, IGOR Pro, dlvm, GDScript, Logos, JADE, Gherkin, Ch, Monkey, Guile, SNOBOL, spry, BlitzBasic, Objective-J, Croc, Classroom Object Oriented Language, JSLT, Spatial, Harbour, Volt, Ragel, Concise Encoding, Ligo, Alloy, dex, Pan, CIL, Apex, Ren'Py, neut, MQL5, DAX, Mask, Jule, Cypher Query Language, Falcon, Vigil, Gettext Catalog, Java Bytecode, 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, Gerbil Scheme, LPC, PIC, NetLinx, Eclipse Command Language, FloScript, ldpl, Jasmin, 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, Rc, MiniD, gentee, Sieve mail filtering language, Claro, CartoCSS, Ezhil, pointless, Savi, LookML, Grammatical Framework, PEG, SRecode Template, Type Language, Refal, Brightscript, Adventure Game Studio Script, Not eXactly C, Maya Embedded Language, GCC Machine Description, ShaderLab, KRL, tht, Project Mentat, Charity, BLISS, kai, Parser 3, Wart, Action!, Frink, QB64, Mouse, HXML, SAKO, silk, manool, Aldor, S-algol, Heron, Uniform eXchange Format, Recfiles, Yet Another Scripting Language, KiXtart, OpenVera, JS++, Alpine Abuild, XBase++, Aardvark, MVEL, PowerBASIC, parasail, Yoix, NS Basic, xxl, winxed, Rescript, 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, Xbasic, Amazon Redshift, FutureBASIC, PROMAL, SIL, PowerQuery M, OEM, VHDL-AMS, Q#, SimCode, Ion, Tuple space, Fable, BuddyScript, True BASIC, blz, Ren, omega, ISETL, Pnuts, MACRO-10, 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, boa, lain, stella, Sweet Expressions, T3X, verifpal, holyc, 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 · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements