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