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

Comments

< >
Example from 167 languages: JavaScript, C, Go, TypeScript, C#, Objective-C, Solidity, Reason, Pug, Groovy, HCL, JSON5, Deno, Protocol Buffers, Yacc, odin, OpenCL, ANTLR, V, Flow, Ballerina, FLUX, Wren, Less, PEG.js, Koka, DOT, Zephir, Vala, Jsonnet, Dafny, Bicep, QML, Eve, Halide, mlir, CIR, Taichi, POV-Ray SDL, Hack, Ceylon, SystemVerilog, Cue, Ron, PowerBuilder, Click, idyll, JAI, eC, Felix, Bison, BCPL, CIL, SuperCollider, AspectJ, SCSS, SugarSS, Flow9, mun-lang, Modelica, xBase, ATS, Fantom, PAWN, Argdown, Whiley, P4, Objective C++, JSON with Comments, Cg, Clipper, Angelscript, IGOR Pro, dlvm, Logos, JADE, Objective-J, Croc, Spatial, Harbour, Volt, Concise Encoding, Ligo, Alloy, CIL, MQL5, DAX, Mask, Cypher Query Language, 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, silk, Heron, OpenVera, 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, 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
Example from 1 languages: HTML
<!-- Hello World in HTML -->
Example from 1 languages: CSS
/* This is a single-line comment */ p { color: red; }
Example from 1 languages: Rust
// https://doc.rust-lang.org/reference/comments.html // a comment
% A comment
Example from 1 languages: Haskell
-- a single line comment {- A multiline comment which can continue for many lines -}
Example from 1 languages: Dart
// Hi /* Assume address is not null. */
/* A comment */
Example from 1 languages: Pascal
{ This is a single line comment in pascal. But needs to be closed. }
-- A comment
Example from 1 languages: Fortran
C C Lines that begin with 'C' (in the first or 'comment' column) are comments C
Example from 1 languages: SPSS
* A comment where first character must be *.
Example from 1 languages: OCaml
(* This is a single-line comment. *) (* This is a * multi-line * comment. *)
Example from 1 languages: Gleam
// This is a single-line comment // Gleam doesn't have multi-line comments // Gleam has /// and //// comments which are used for attaching documentation to code. /// is used for documenting types and functions, and should be placed immediately before the type or function it is documenting. //// is used for documenting modules, and should be placed at the top of the module.
; A comment
Example from 1 languages: HAML
-# A comment
' A comment
Example from 1 languages: Ini
# a '#' or ';' character indicates ; a comment
Example from 1 languages: MongoDB
$comment: "A comment"
Example from 1 languages: BASIC
REM This BASIC program shows the use of the PRINT and GOTO Statements.
Example from 1 languages: C3
// A comment /* Another comment */
Example from 1 languages: XQuery
(: Hello World with XQuery :)
Example from 1 languages: Batchfile
REM A comment :: Another type of comment
Example from 1 languages: Wolfram Language
(* A comment *)
Example from 1 languages: Rexx
* => 1000000000 */
Example from 7 languages: Oberon, EBNF, Isabelle, UrWeb, Fortress, Bluespec, COMPONENT PASCAL
(* A comment *)
Example from 1 languages: TLA+
\* A comment
Example from 1 languages: Slope
; I am a comment
Example from 1 languages: Twig
{# A comment #}
Example from 1 languages: Veryl
// https://doc.veryl-lang.org/book/05_language_reference/02_lexical_structure.html // a comment
Example from 1 languages: groff
Test \" comment Test Test \# comment Test
Example from 1 languages: Object Pascal
(* This is a multi-line comments and it will span multiple lines. *) { This is a single line comment in pascal }
Example from 3 languages: SNOBOL, Refal, ActiveVFP
* A comment
Example from 1 languages: Jule
// A comment /* A comment */
Example from 1 languages: popr
__ A comment
Example from 1 languages: RELAX NG
# Comments start with a # and continue to the end of the line:
Example from 1 languages: dedukti
(; A comment ;)
Example from 1 languages: Z
-- A simple function, that is used inside the macro below. defun ap x y ++ x y defmacro : input z:string input -- Example with print: print : Hello, World! What's going on in here?
Example from 1 languages: HOPE
--- A comment
! A comment
Example from 1 languages: Orc
{- A comment -}
Example from 1 languages: HAGGIS
''' A comment '''
Example from 1 languages: Mouse
~ A comment
Example from 1 languages: SAKO
K) A comment : Also a comment (although, rarer and newer) K) Comments must start at the beginning of a line
Example from 1 languages: Uniform eXchange Format
# <A comment>
Example from 1 languages: Recfiles
# Blah blah… # Unlike some file formats, comments in recfiles must be complete lines. You cannot start a comment in the middle of a line.
Example from 1 languages: Speedie
// comment
Example from 1 languages: Turbo Pascal
{ within pairs of braces } (* left parenthesis/asterisk and asterisk/right parenthesis pairs *) // preceded by two forward slashes
Example from 1 languages: Quaint
;; A comment
Example from 1 languages: Crap
/* A comment */
Example from 1 languages: S3
@ a comment @
Example from 1 languages: Lexon
COMMENT A comment
Example from 1 languages: FML
# This is a line comment ### This is a block comment ###
Example from 1 languages: Fibonacci
(* query examples *)
*

Languages with Comments include JavaScript, C, Python, Java, HTML, CSS, Perl, Ruby, PHP, Go, XML, TypeScript, SQL, C#, R, PowerShell, Bash, Rust, Swift, Scala, Lua, MATLAB, Kotlin, Haskell, Clojure, CoffeeScript, Elixir, Erlang, SAS, Objective-C, Prolog, Julia, Mathematica, COBOL, Dart, CUDA, Racket, Solidity, WebAssembly, Visual Basic, Zig, YAML, Nim, Pascal, Ada, Fortran, TOML, PostgreSQL, Crystal, MySQL, Reason, D, Elm, GraphQL, Haxe, Scheme, awk, Pug, Tex, Groovy, SPSS, Chapel, F#, OCaml, Gleam, LLVM IR, HCL, ClojureScript, Smalltalk, PureScript, HAML, SVG, VHDL, Tcl, JSON5, Idris, Forth, Deno, Visual Basic .NET, Protocol Buffers, Ini, ARM, Yacc, Make, APL, odin, Embedded Crystal, OpenCL, LaTeX, MongoDB, Red, J, fish, Maple, starlark, Lean, ANTLR, sed, V, Flow, IDL, Fennel, KaTeX, Dhall, Delphi, Stata, ABAP, PostCSS, Verilog, ActionScript, Pony, Ballerina, PRQL, Hy, FLUX, Factor, BASIC, Squirrel, C3, Wren, AutoHotkey, PostScript, Less, ColdFusion, XQuery, Common Lisp, Smali, Cap'n Proto, Eiffel, PEG.js, EDN, MoonScript, MUMPS, API Blueprint, NetLogo, Koka, DOT, Zephir, Vala, Lex, Jsonnet, VBScript, Frege, Janet, Logo, Pig Latin, M4, Dafny, carp, Batchfile, Bicep, PL/SQL, Nginx, Nearley, Terra, QML, GNU Octave, Opa, Eve, Halide, Nextflow, Futhark, MIPS architecture, Agda, Processing, SPARQL, mlir, CIR, Jison, Taichi, VBA, PL/I, AMPL, Emacs Lisp, POV-Ray SDL, Hjson, Hack, Wolfram Language, unison, GAP, Lil, YASnippet, mgmt, Applescript, Ceylon, SystemVerilog, Expect, QBasic, Modula-2, DTrace, x86 Assembly, Rexx, progsbase, Cue, Ron, C2, Cryptol, Oberon, ECL, PowerBuilder, Click, Scilab, HLSL, idyll, WDL, GLSL, TLA+, Slope, JAI, AutoIt, K, Twig, Observable, Clean, wisp, Simula, eC, Golo, Transact-SQL, Felix, CWL, datascript, AGC, Bison, Ring, Nemerle, Sage, Boo, Mercury, Mirah, Logica, BCPL, CIL, SuperCollider, AspectJ, Datalog, Mu, Dylan, Xojo, SCSS, SugarSS, ooc, Flow9, Modula-3, REBOL, ArkScript, Closure Templates, Raku, Oz, EBNF, Nit, JCL, Lily, Gosu, mun-lang, Modelica, Maxima, Neko, xBase, B, Shen, JFlex, Veryl, ATS, NewLisp, Dale, Fancy, LiveScript, Xtend, CLIPS, SourcePawn, Io, LFE, Isabelle, NCAR Command Language, Fantom, NSIS, Pike, PAWN, groff, Befunge, Object Pascal, Filebench WML, OpenSCAD, X10, Argdown, PL/pgSQL, Logtalk, Reia, BlitzMax, Turing, Icon, Dockerfile, Whiley, Lasso, LilyPond, Csound, clay, P4, UrWeb, 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, basic calculator, OpenEdge ABL, XSLT, 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, Genie, C shell, popr, PL/M, muPad, Seed7, Tea, HuJSON, OCL, Not Quite C, NestedText, Netwide Assembler, UNLAMBDA, Script.NET, Augmented Backus-Naur Form, FreeBASIC, Mako, Linden Scripting Language, Opal, Fortress, High Level Assembly, Gentoo Ebuild, PARI/GP, DM, Cwerg, Gerbil Scheme, LPC, PIC, MAXScript, NetLinx, Joy, Eclipse Command Language, FloScript, ldpl, Jasmin, Vale, Bluespec, RELAX NG, Game Maker Language, Oberon-2, S-PLUS, BitBake, dedukti, SETL, Z, HOPE, Sophia, Dc, Spin, Strips, BETA, Cycript, SMT, Structured Query Reporter, Unicon, monte, Redcode, storyscript, Slice, Nymph, Asymptote, HiveQL, LoomScript, Cell, Sather, COMPONENT PASCAL, Lingo, LotusScript, Hocon, Rc, MiniD, gentee, Claro, WebIDL, CartoCSS, Ezhil, pointless, XS, Savi, LookML, Grammatical Framework, PEG, SRecode Template, Type Language, Refal, RenderScript, Gambas, ACL2, Brightscript, Adventure Game Studio Script, Not eXactly C, Maya Embedded Language, Edje Data Collection, GCC Machine Description, ShaderLab, KRL, tht, Project Mentat, Orc, MOO, Charity, CLIST, BLISS, kai, Parser 3, Wart, METAFONT, GW-BASIC, Action!, Frink, HAGGIS, QB64, Mouse, SAKO, silk, manool, Aldor, S-algol, Heron, Uniform eXchange Format, Recfiles, NetRexx, Yet Another Scripting Language, KiXtart, OpenVera, JS++, Alpine Abuild, ARexx, Speedie, XBase++, Aardvark, MVEL, PowerBASIC, Turbo Pascal, parasail, Augeas, Yoix, NS Basic, xxl, winxed, Rescript, Mary, Quaint, neeilang, Plus, Simple Actor Language System and Architecture, EuLisp, carth, Language Server Index Format, Easytrieve, Lite-C, Rita, RLaB, taf, Bel, Judoscript, Fjölnir, TAL, owen-lang, Rust MIR, Crap, Boron, Pawn, Xbasic, Amazon Redshift, FutureBASIC, PROMAL, SIL, PowerQuery M, Handel-C, OEM, VHDL-AMS, Q#, blockml, Urbiscript, SimCode, Ion, Tuple space, Pikchr, Fable, BuddyScript, True BASIC, NESL, blz, Ren, False, omega, ISETL, Pnuts, S3, MACRO-10, XPL0, hilvl, AmbientTalk, Arden syntax, ProbeVue, SNOBOL4, 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, SARL, stella, Sweet Expressions, verifpal, holyc, ThinBasic, FML, StarOffice Basic, Caché Basic, Fibonacci, Bla, luau, Misty, 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, bioscript, ctalk-lang, dslx, Manchester syntax, Portable Bit Map Format, Netpbm grayscale image format, ppm-format, PacmanConf, PkgConfig, txr, USD, wescheme, CFScript, ddfql, turnstile, Creative Basic, KonsolScript, Smithy, tremor-query, BABEL, Lighttpd configuration file, rbscript, sora, zephyr-asdl

*

Languages without Comments include JSON, Regular Expressions, Particles, JCOF

*

View all concepts with or missing a hasComments measurement

*

Read more about Comments on the web: 1. 2.

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