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

Comments

< >
Example from 169 languages: JavaScript, C, Go, TypeScript, C#, Objective-C, Solidity, Reason, Pug, Groovy, HCL, JSON5, Rescript, Odin, Deno, Protocol Buffers, Yacc, OpenCL, Flow, ANTLR, V, Ballerina, FLUX, Wren, Less, Wa-lang, PEG.js, DOT, Vala, Koka, Zephir, Jsonnet, Bicep, MLIR, Dafny, QML, Eve, Halide, CIR, Taichi, POV-Ray SDL, Hack, Ron, SystemVerilog, Ceylon, PowerBuilder, AspectJ, Cue, Click, idyll, pest, JAI, eC, Bison, Felix, BCPL, SuperCollider, CIL, SCSS, SugarSS, Flow9, xBase, Modelica, mun-lang, ATS, Fantom, PAWN, Argdown, Whiley, Objective C++, P4, dlvm, JSON with Comments, IGOR Pro, Logos, Angelscript, Cg, Clipper, JADE, Objective-J, Croc, Harbour, Alloy, Ligo, Spatial, Volt, Concise Encoding, Cypher Query Language, CIL, DAX, Mask, MQL5, Java Bytecode, OX, spiral, HuJSON, Not Quite C, Script.NET, Linden Scripting Language, DM, LPC, NetLinx, Vale, Game Maker Language, Sophia, BETA, Strips, Cycript, Slice, Nymph, LoomScript, Cell, MiniD, gentee, Hocon, CartoCSS, Type Language, Adventure Game Studio Script, Not eXactly C, KRL, Maya Embedded Language, ShaderLab, tht, kai, silk, Heron, OpenVera, XBase++, NS Basic, Yoix, winxed, MVEL, neeilang, xxl, Language Server Index Format, Lite-C, Judoscript, owen-lang, Rust MIR, Swift SIL, FutureBASIC, OEM, PowerQuery M, Q#, SimCode, Fable, Tuple space, Pnuts, hilvl, Action Code Script, JSL, beads-lang, fizz, flagship, 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. }
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. *)
; A 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.
Example from 1 languages: HAML
-# A comment
Example from 1 languages: MongoDB
$comment: "A comment"
' A comment
Example from 1 languages: Ini
# a '#' or ';' character indicates ; a comment
Example from 1 languages: C3
// A comment /* Another comment */
Example from 1 languages: BASIC
REM This BASIC program shows the use of the PRINT and GOTO Statements.
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 1 languages: Twig
{# A comment #}
Example from 7 languages: Oberon, Isabelle, EBNF, 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: 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 1 languages: Jule
// A comment /* A comment */
Example from 3 languages: SNOBOL, Refal, ActiveVFP
* 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: HOPE
--- 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?
! A 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: Orc
{- 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: Mouse
~ A comment
Example from 1 languages: HAGGIS
''' 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: Object File Format
# This is a comment in an OFF file
Example from 1 languages: Quaint
;; A comment
Example from 1 languages: Crap
/* A comment */
Example from 1 languages: X3D
<!-- This is a comment in X3D -->
Example from 1 languages: Uniform eXchange Format
# <A comment>
Example from 1 languages: STEP
/* This is a comment in a STEP file */
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, SQL, TypeScript, C#, R, PowerShell, Bash, Rust, Swift, MATLAB, Scala, Lua, Kotlin, Haskell, Clojure, CoffeeScript, Elixir, Erlang, Prolog, SAS, Objective-C, Julia, Mathematica, Dart, CUDA, Solidity, COBOL, Zig, Racket, Visual Basic, WebAssembly, Pascal, YAML, Nim, TOML, Fortran, Ada, PostgreSQL, Crystal, MySQL, Reason, GraphQL, D, Elm, Haxe, Pug, Scheme, Chapel, awk, Groovy, Tex, SPSS, OCaml, LLVM IR, F#, Gleam, HCL, ClojureScript, Smalltalk, PureScript, HAML, SVG, Tcl, VHDL, JSON5, MongoDB, Rescript, Idris, Odin, Forth, Deno, Protocol Buffers, Visual Basic .NET, Ini, Make, APL, Yacc, ARM, Embedded Crystal, OpenCL, LaTeX, C3, Red, J, fish, Lean, Maple, starlark, Flow, sed, ANTLR, IDL, V, KaTeX, Dhall, Fennel, Stata, Delphi, ABAP, ActionScript, PostCSS, Verilog, Pony, Ballerina, PRQL, Hy, Factor, FLUX, AutoHotkey, BASIC, Wren, PostScript, Less, MUMPS, ColdFusion, XQuery, Common Lisp, Cap'n Proto, Eiffel, Wa-lang, EDN, Smali, PEG.js, NetLogo, DOT, MoonScript, API Blueprint, Vala, Lex, Koka, Zephir, M4, Pig Latin, Logo, Jsonnet, Bicep, Frege, VBScript, Janet, MLIR, Dafny, Batchfile, carp, QML, PL/SQL, Eve, Nginx, Nearley, Terra, GNU Octave, Opa, Halide, Agda, CIR, Nextflow, Futhark, MIPS architecture, PL/I, Processing, SPARQL, Jison, AMPL, unison, Taichi, VBA, Emacs Lisp, Sage, DTrace, Squirrel, Mercury, Expect, Wolfram Language, POV-Ray SDL, OpenSCAD, Hack, Modula-2, Hjson, GAP, Lil, Ron, YASnippet, SystemVerilog, Applescript, mgmt, Rexx, Ceylon, PowerBuilder, Twig, AspectJ, x86 Assembly, Oberon, QBasic, C2, HLSL, ECL, GLSL, progsbase, Cryptol, Cue, Scilab, TLA+, Click, K, idyll, pest, WDL, Observable, Clean, Slope, AutoIt, AGC, JAI, Nemerle, eC, Bison, Simula, wisp, Golo, Ring, datascript, Felix, Transact-SQL, CWL, Datalog, Boo, Mirah, Isabelle, Logica, BCPL, EBNF, SuperCollider, CIL, SCSS, Mu, Xojo, Dylan, REBOL, SugarSS, Flow9, ooc, X10, Raku, Modula-3, ArkScript, B, JCL, Closure Templates, xBase, Oz, Lily, Nit, Gosu, Maxima, Modelica, mun-lang, Neko, Shen, JFlex, Veryl, ATS, NewLisp, Dale, Java Properties, Xtend, LiveScript, Fancy, LFE, CLIPS, Io, SourcePawn, groff, Fantom, Pike, NCAR Command Language, NSIS, PAWN, Logtalk, Befunge, PL/pgSQL, Object Pascal, Icon, Dockerfile, Praat Script, Filebench WML, Argdown, Turing, Reia, BlitzMax, Whiley, Objective C++, Lasso, LilyPond, Csound, P4, clay, E, UrWeb, dlvm, PureBasic, FoxPRO, LiveCode, Jule, lispyscript, JSON with Comments, GDScript, Euphoria, IGOR Pro, Logos, Angelscript, Gherkin, Cg, Clipper, basic calculator, XSLT, Ch, JADE, Monkey, Objective-J, OpenEdge ABL, Guile, SNOBOL, spry, Neut, Croc, BlitzBasic, Classroom Object Oriented Language, Harbour, Alloy, Ligo, Spatial, Volt, Concise Encoding, JSLT, Ragel, Cypher Query Language, dex, Fortress, Apex, OCL, Pan, CIL, Ren'Py, DAX, Mask, MQL5, Falcon, Netwide Assembler, Gerbil Scheme, Vigil, C shell, Java Bytecode, PicoLisp, PL/M, OX, Gettext Catalog, Genie, spiral, popr, Seed7, muPad, Tea, HuJSON, Not Quite C, Mako, NestedText, UNLAMBDA, Augmented Backus-Naur Form, Script.NET, FreeBASIC, Linden Scripting Language, Opal, High Level Assembly, Gentoo Ebuild, PARI/GP, DM, LPC, PIC, Joy, Cwerg, MAXScript, NetLinx, Redcode, Eclipse Command Language, Jasmin, FloScript, ldpl, Oberon-2, Vale, Bluespec, Game Maker Language, RELAX NG, BitBake, dedukti, S-PLUS, SETL, SMT, HOPE, Z, Sophia, Dc, Spin, BETA, Strips, WebIDL, Unicon, Cycript, HiveQL, monte, Structured Query Reporter, Slice, storyscript, Nymph, Asymptote, LoomScript, Cell, MiniD, Sather, COMPONENT PASCAL, LotusScript, Lingo, gentee, Hocon, Rc, Claro, Ezhil, CartoCSS, pointless, Turbo Pascal, XS, Refal, Savi, LookML, Grammatical Framework, RenderScript, SRecode Template, Type Language, Brightscript, PEG, Gambas, ACL2, Adventure Game Studio Script, Not eXactly C, KRL, MOO, Maya Embedded Language, Edje Data Collection, GCC Machine Description, ShaderLab, tht, Project Mentat, Orc, Charity, CLIST, kai, BLISS, Action!, Parser 3, Wart, METAFONT, Frink, SAKO, GW-BASIC, Mouse, silk, HAGGIS, manool, QB64, Aldor, S-algol, Heron, Recfiles, NetRexx, Yet Another Scripting Language, Aardvark, KiXtart, JS++, OpenVera, Alpine Abuild, ARexx, Speedie, XBase++, Object File Format, parasail, Augeas, NS Basic, Yoix, winxed, Quaint, Mary, MVEL, PowerBASIC, neeilang, xxl, Plus, carth, Simple Actor Language System and Architecture, EuLisp, Language Server Index Format, Easytrieve, Lite-C, Rita, RLaB, taf, Judoscript, Bel, Fjölnir, TAL, owen-lang, Rust MIR, Xbasic, Crap, Boron, Pawn, Amazon Redshift, X3D, PROMAL, Swift SIL, FutureBASIC, OEM, PowerQuery M, Handel-C, Uniform eXchange Format, blockml, Q#, VHDL-AMS, SimCode, STEP, Ion, BuddyScript, Fable, Pikchr, Tuple space, blz, Arden syntax, z80, True BASIC, NESL, Ren, Urbiscript, ISETL, False, omega, MACRO-10, XPL0, Pnuts, S3, ProbeVue, hilvl, AmbientTalk, Atomese, SNOBOL4, Action Code Script, JSL, ActiveVFP, beads-lang, fizz, flagship, Guix Workflow Language, PromQL, Operational Control Language, CLOS, Boogie, epsilon, Lexon, Plot, rosette-lang, Spice, Zimpl, boa, lain, SARL, stella, Sweet Expressions, verifpal, holyc, ThinBasic, FML, StarOffice Basic, Caché Basic, Fibonacci, USD, 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, 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 · Add Prompt · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements