// 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. }
-- A comment
C
C Lines that begin with 'C' (in the first or 'comment' column) are comments
C
* 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, 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.