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

Comments

< >
Example from 168 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, Wa-lang, DOT, Koka, Zephir, Vala, Jsonnet, Dafny, Bicep, QML, Eve, Halide, CIR, mlir, Taichi, POV-Ray SDL, Hack, Ceylon, SystemVerilog, Ron, Cue, PowerBuilder, Click, idyll, JAI, eC, Felix, Bison, BCPL, CIL, AspectJ, SuperCollider, SCSS, SugarSS, Flow9, xBase, mun-lang, Modelica, ATS, Fantom, PAWN, Argdown, Whiley, Objective C++, P4, JSON with Comments, IGOR Pro, Cg, 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. }
Example from 1 languages: Fortran
C C Lines that begin with 'C' (in the first or 'comment' column) are comments C
-- A comment
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, Fortran, Ada, 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, Eiffel, Cap'n Proto, PEG.js, MUMPS, EDN, MoonScript, Wa-lang, NetLogo, API Blueprint, DOT, Koka, Zephir, Vala, Lex, Jsonnet, Logo, Frege, VBScript, Janet, M4, Pig Latin, carp, Dafny, Batchfile, Bicep, PL/SQL, Nginx, QML, Nearley, Terra, GNU Octave, Opa, Eve, Halide, Nextflow, CIR, Futhark, MIPS architecture, Agda, Processing, mlir, SPARQL, Jison, Taichi, VBA, PL/I, AMPL, Emacs Lisp, POV-Ray SDL, Hjson, Hack, Wolfram Language, unison, GAP, Lil, YASnippet, mgmt, Expect, Applescript, Ceylon, Modula-2, SystemVerilog, DTrace, Ron, QBasic, Rexx, x86 Assembly, progsbase, C2, Cue, Oberon, Cryptol, PowerBuilder, ECL, Twig, HLSL, Click, Scilab, idyll, GLSL, WDL, TLA+, Slope, K, JAI, AutoIt, Observable, Clean, eC, Simula, wisp, Golo, Nemerle, Transact-SQL, Felix, datascript, CWL, Bison, AGC, Ring, Sage, Boo, Mercury, Mirah, Logica, BCPL, Datalog, CIL, AspectJ, SuperCollider, Mu, Dylan, Xojo, SCSS, SugarSS, ooc, REBOL, Flow9, Modula-3, X10, Raku, ArkScript, Closure Templates, Oz, JCL, EBNF, Lily, Nit, Gosu, xBase, mun-lang, Modelica, Maxima, Neko, B, Shen, JFlex, Veryl, ATS, NewLisp, Dale, LiveScript, Fancy, Xtend, CLIPS, LFE, Io, SourcePawn, Isabelle, Fantom, NCAR Command Language, NSIS, Pike, PAWN, groff, Befunge, Object Pascal, PL/pgSQL, Filebench WML, Logtalk, OpenSCAD, Argdown, Dockerfile, Icon, Reia, BlitzMax, Turing, Whiley, Lasso, LilyPond, Csound, Objective C++, clay, P4, E, UrWeb, PureBasic, Java Properties, FoxPRO, JSON with Comments, lispyscript, Praat Script, LiveCode, Euphoria, IGOR Pro, Cg, Angelscript, Clipper, dlvm, Logos, Gherkin, GDScript, Ch, JADE, basic calculator, Monkey, OpenEdge ABL, XSLT, 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, Fortress, DAX, MQL5, Mask, Jule, Cypher Query Language, Falcon, Vigil, Java Bytecode, Gettext Catalog, PicoLisp, OX, spiral, Genie, C shell, popr, PL/M, muPad, Seed7, Tea, HuJSON, OCL, Not Quite C, NestedText, Netwide Assembler, UNLAMBDA, Mako, Script.NET, Augmented Backus-Naur Form, FreeBASIC, Linden Scripting Language, Opal, High Level Assembly, Gentoo Ebuild, PARI/GP, DM, Cwerg, PIC, Gerbil Scheme, 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, Lingo, LotusScript, Hocon, MiniD, Rc, gentee, Claro, WebIDL, CartoCSS, Ezhil, pointless, XS, Savi, LookML, Grammatical Framework, Refal, PEG, 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, 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, Aardvark, Yet Another Scripting Language, KiXtart, JS++, OpenVera, Alpine Abuild, ARexx, Speedie, XBase++, 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, PROMAL, FutureBASIC, SIL, PowerQuery M, Handel-C, OEM, VHDL-AMS, Q#, Urbiscript, blockml, SimCode, Ion, Tuple space, Pikchr, Fable, BuddyScript, 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