// A comment
# A comment
<!-- Hello World in HTML -->
/* This is a single-line comment */ p { color: red; }
// https://doc.rust-lang.org/reference/comments.html
// a comment
% A comment
-- a single line comment
{- A multiline comment
which can continue for many lines
-}
// Hi
/* Assume address is not null. */
/* A comment
*/
{ This is a single line comment in pascal. But needs to be closed. }
C
C Lines that begin with 'C' (in the first or 'comment' column) are comments
C
-- A comment
* A comment where first character must be *.
(* This is a single-line comment. *)
(* This is a
* multi-line
* comment.
*)
// 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
-# A comment
' A comment
# a '#' or ';' character indicates
; a comment
$comment: "A comment"
REM This BASIC program shows the use of the PRINT and GOTO Statements.
// A comment
/* Another comment */
(: Hello World with XQuery :)
REM A comment
:: Another type of comment
(* A comment *)
* => 1000000000 */
(* A comment
*)
{# A comment
#}
\* A comment
; I am a comment
// https://doc.veryl-lang.org/book/05_language_reference/02_lexical_structure.html
// a comment
Test
\" comment
Test
Test
\# comment
Test
(* This is a multi-line comments
and it will span multiple lines. *)
{ This is a single line comment in pascal }
// A comment
/* A comment */
__ A comment
# Comments start with a # and continue to the end of the line:
(; A comment ;)
-- 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
! A comment
{- A comment
-}
''' A comment
'''
~ A comment
K) A comment
: Also a comment (although, rarer and newer)
K) Comments must start at the beginning of a line
# <A comment>
# Blah blah…
# Unlike some file formats, comments in recfiles must be complete lines. You cannot start a comment in the middle of a line.
// comment
{ within pairs of braces }
(* left parenthesis/asterisk and asterisk/right parenthesis pairs *)
// preceded by two forward slashes
;; A comment
/* A comment */
@ a comment @
COMMENT A comment
# This is a line comment
###
This is a block comment
###
(* 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.