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, Rescript, Yacc, odin, OpenCL, Flow, ANTLR, V, Ballerina, FLUX, Wren, Less, PEG.js, DOT, Koka, Zephir, Vala, Jsonnet, Dafny, Bicep, QML, Eve, Halide, CIR, mlir, Taichi, POV-Ray SDL, Hack, Ceylon, SystemVerilog, Cue, Ron, PowerBuilder, Click, idyll, JAI, eC, Felix, Bison, BCPL, CIL, AspectJ, SuperCollider, SCSS, SugarSS, Flow9, mun-lang, Modelica, xBase, ATS, Fantom, PAWN, Argdown, Whiley, P4, Objective C++, JSON with Comments, Cg, IGOR Pro, Angelscript, Clipper, dlvm, Logos, JADE, Objective-J, Croc, Harbour, Spatial, Volt, Concise Encoding, Ligo, Alloy, CIL, DAX, MQL5, 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, KRL, ShaderLab, tht, kai, silk, Heron, 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, 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
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: Twig
{# A comment #}
Example from 1 languages: TLA+
\* A comment
Example from 1 languages: Slope
; I am 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, MATLAB, Lua, Kotlin, Haskell, Clojure, CoffeeScript, Elixir, Erlang, SAS, Prolog, Objective-C, Julia, Mathematica, Dart, COBOL, CUDA, Solidity, Visual Basic, Racket, WebAssembly, Zig, Nim, YAML, Pascal, Ada, Fortran, TOML, PostgreSQL, Crystal, MySQL, Reason, D, Elm, GraphQL, Haxe, Scheme, Chapel, awk, Pug, Groovy, Tex, SPSS, F#, OCaml, Gleam, LLVM IR, HCL, ClojureScript, Smalltalk, PureScript, HAML, SVG, VHDL, Tcl, JSON5, Idris, Forth, Deno, Visual Basic .NET, Protocol Buffers, Ini, ARM, Rescript, Yacc, Make, APL, odin, Embedded Crystal, OpenCL, LaTeX, MongoDB, Red, J, fish, Maple, starlark, Lean, Flow, ANTLR, sed, V, IDL, KaTeX, Fennel, Dhall, Delphi, Stata, ABAP, PostCSS, ActionScript, Verilog, Pony, Ballerina, PRQL, Hy, FLUX, Factor, Squirrel, BASIC, C3, AutoHotkey, Wren, PostScript, Less, ColdFusion, XQuery, Common Lisp, Smali, Cap'n Proto, Eiffel, PEG.js, MUMPS, EDN, MoonScript, API Blueprint, NetLogo, DOT, Koka, Zephir, Vala, Lex, Jsonnet, Frege, VBScript, Logo, Janet, Pig Latin, M4, carp, Dafny, Batchfile, Bicep, PL/SQL, Nginx, Nearley, QML, Terra, GNU Octave, Opa, Eve, Halide, Nextflow, CIR, Futhark, MIPS architecture, Agda, Processing, SPARQL, mlir, Jison, Taichi, VBA, PL/I, AMPL, Emacs Lisp, POV-Ray SDL, Hack, Hjson, Wolfram Language, unison, GAP, Lil, YASnippet, mgmt, Expect, Applescript, Ceylon, SystemVerilog, Modula-2, DTrace, QBasic, Rexx, x86 Assembly, progsbase, Cue, C2, Ron, Cryptol, Oberon, PowerBuilder, ECL, Twig, 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, Mercury, Mirah, Logica, BCPL, Datalog, CIL, AspectJ, SuperCollider, Mu, Dylan, Xojo, SCSS, SugarSS, ooc, Flow9, REBOL, Modula-3, X10, ArkScript, Raku, Closure Templates, Oz, JCL, Lily, Nit, EBNF, Gosu, mun-lang, Modelica, xBase, Maxima, B, Neko, Shen, JFlex, Veryl, ATS, NewLisp, Dale, Fancy, LiveScript, Xtend, CLIPS, SourcePawn, LFE, Io, Isabelle, NCAR Command Language, Fantom, NSIS, Pike, PAWN, groff, Befunge, Object Pascal, Filebench WML, OpenSCAD, PL/pgSQL, Argdown, Logtalk, Reia, Dockerfile, BlitzMax, Turing, Icon, Whiley, Lasso, LilyPond, Csound, clay, P4, Objective C++, E, UrWeb, PureBasic, Java Properties, FoxPRO, lispyscript, JSON with Comments, Euphoria, Praat Script, LiveCode, Cg, IGOR Pro, Angelscript, Clipper, dlvm, Logos, GDScript, Gherkin, Ch, JADE, Monkey, basic calculator, OpenEdge ABL, XSLT, 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, Fortress, DAX, MQL5, Mask, Jule, Cypher Query Language, Falcon, Vigil, Gettext Catalog, Java Bytecode, PicoLisp, OX, spiral, Genie, popr, C shell, PL/M, muPad, Seed7, Tea, HuJSON, OCL, Not Quite C, NestedText, Netwide Assembler, UNLAMBDA, Mako, Script.NET, FreeBASIC, Augmented Backus-Naur Form, Linden Scripting Language, Opal, High Level Assembly, Gentoo Ebuild, PARI/GP, DM, Cwerg, Gerbil Scheme, PIC, LPC, Joy, NetLinx, MAXScript, Eclipse Command Language, FloScript, Jasmin, ldpl, 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, LotusScript, Lingo, Hocon, MiniD, Rc, gentee, Claro, WebIDL, CartoCSS, Ezhil, pointless, XS, Savi, LookML, Grammatical Framework, PEG, Refal, SRecode Template, Type Language, RenderScript, Gambas, ACL2, Brightscript, Adventure Game Studio Script, Not eXactly C, Maya Embedded Language, KRL, Edje Data Collection, GCC Machine Description, ShaderLab, tht, Project Mentat, Orc, MOO, Charity, CLIST, kai, BLISS, 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, JS++, Alpine Abuild, OpenVera, ARexx, Speedie, XBase++, Aardvark, parasail, MVEL, PowerBASIC, Turbo Pascal, Augeas, Yoix, NS Basic, xxl, winxed, 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, Amazon Redshift, Xbasic, FutureBASIC, PROMAL, SIL, PowerQuery M, Handel-C, OEM, VHDL-AMS, Q#, blockml, Urbiscript, SimCode, Ion, Tuple space, Pikchr, BuddyScript, Fable, True BASIC, blz, NESL, Ren, False, ISETL, omega, MACRO-10, XPL0, Pnuts, S3, Arden syntax, ProbeVue, hilvl, AmbientTalk, 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, holyc, boa, lain, SARL, stella, Sweet Expressions, verifpal, 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 · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements