<!-- Hello World in HTML -->
# This is a comment in perl
=begin comment
This is all part of multiline comment.
You can use as many lines as you like
These comments will be ignored by the
compiler until the next =cut is encountered.
=cut
# This is a single line comment.
% This is a comment
C
C Lines that begin with 'C' (in the first or 'comment' column) are comments
C
-- A comment
# A comment
/* This is a single-line comment */ p { color: red; }
// https://doc.rust-lang.org/reference/comments.html
// a comment
{ This is a single line comment in pascal. But needs to be closed. }
-- a single line comment
{- A multiline comment
which can continue for many lines
-}
// A comment
; A comment
# this is a comment
% hello world program
/* A comment
*/
// Hi
/* Assume address is not null. */
REM This BASIC program shows the use of the PRINT and GOTO Statements.
(* This is a single-line comment. *)
(* This is a
* multi-line
* comment.
*)
* A comment where first character must be *.
(: Hello World with XQuery :)
' A comment
* => 1000000000 */
% A comment
-# A comment
(* This is a multi-line comments
and it will span multiple lines. *)
{ This is a single line comment in pascal }
# a '#' or ';' character indicates
; a comment
REM A comment
:: Another type of comment
\* A comment
// A comment
/* Another comment */
! A comment
(* A comment *)
// comment
{# A comment
#}
--- A comment
; I am a comment
// A comment
/* A comment */
@ a comment @
Test
\" comment
Test
Test
\# comment
Test
(* query examples *)
;; A comment
# This is a line comment
###
This is a block comment
###
# Comments start with a # and continue to the end of the line:
# Blah blah…
# Unlike some file formats, comments in recfiles must be complete lines. You cannot start a comment in the middle of a line.
{- A comment
-}
''' 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
(; This is a comment ;)
COMMENT A comment
Languages with Comments include Java, JavaScript, Python, C, SQL, HTML, C++, XML, PHP, Perl, Ruby, MATLAB, C#, Fortran, MySQL, R, Go, COBOL, CSS, Swift, Scala, Ada, Rust, PostgreSQL, Kotlin, PowerShell, Pascal, Haskell, TypeScript, ARM, Lua, Julia, SAS, Clojure, Prolog, Bash, Objective-C, Mathematica, Elixir, Visual Basic, Erlang, CUDA, Scheme, Dart, Modula-2, Solidity, Tcl, ActionScript, VBA, Verilog, Reason, BASIC, Crystal, awk, Delphi, CoffeeScript, F#, YAML, Elm, Maple, Eiffel, OCaml, Modula-3, Racket, Yacc, Smalltalk, D, Sage, Groovy, GraphQL, Common Lisp, LaTeX, VHDL, APL, Smali, Nginx, OpenCL, LLVM IR, SPSS, Nim, XQuery, Visual Basic .NET, PostScript, Pug, Chapel, Red, WebAssembly, Haxe, Rexx, ANTLR, LFE, fish, PureBasic, Forth, MIPS architecture, Lasso, Applescript, VBScript, Oz, Idris, Tex, SVG, Oberon, CIL, V, ABAP, PureScript, Simula, Protocol Buffers, AMPL, PicoLisp, sed, Logo, FLUX, HAML, Processing, BCPL, Dylan, Hack, PL/SQL, REBOL, Nearley, MoonScript, Squirrel, DOT, Terra, idyll, Jison, Monkey, Fantom, Ballerina, BlitzBasic, Frege, Agda, EuLisp, ColdFusion, x86 Assembly, Zig, TOML, MUMPS, J, AutoIt, Hy, Lean, GNU Octave, NewLisp, Emacs Lisp, Zephir, Makefile, Flow, Nemerle, X10, Vala, Icon, Turing, Scilab, QML, PostCSS, Nextflow, Pony, Mercury, PL/I, Click, EDN, Io, xBase, Opa, IDL, Ceylon, JSON5, Boo, QBasic, Java Bytecode, SPARQL, NetLogo, Clean, SystemVerilog, CLIPS, Stata, HCL, Object Pascal, SuperCollider, Factor, Ini, Cython, Bison, API Blueprint, AGC, SNOBOL, odin, POV-Ray SDL, PL/pgSQL, ClojureScript, Wren, Pike, Batchfile, Isabelle, Dafny, TLA, MiniD, C3, ATS, S-algol, eC, Embedded Crystal, Dhall, Lex, Csound, B, Perl 6, Alloy, FoxPRO, GW-BASIC, Xojo, PEG.js, Halide, E, LiveScript, Bicep, Modelica, ECL, AutoHotkey, Objective-J, wisp, Clipper, M4, Datalog, Wolfram Language, Speedie, UrWeb, PowerBuilder, GAP, Gambas, Seed7, YASnippet, Twig, Less, Befunge, XS, PRQL, Cap'n Proto, starlark, Classroom Object Oriented Language, Oberon-2, JFlex, Pig Latin, KaTeX, unison, Transact-SQL, AspectJ, Genie, XBase++, FreeBASIC, SETL, Maxima, Netwide Assembler, Dc, Falcon, DTrace, Golo, mlir, Croc, Bluespec, LiveCode, PEG, Fennel, NSIS, Cue, Ion, WxBasic, Eve, JCL, Augmented Backus-Naur Form, K, Closure Templates, janet, CWL, WDL, SourcePawn, True BASIC, Sather, Koka, datascript, Reia, Ragel, Ron, Xtend, Argdown, CIL, Ren'Py, HLSL, Java Properties, Ring, Hjson, carp, PARI/GP, XSLT, EBNF, Unicon, High Level Assembly, Fortress, muPad, Mirah, Gosu, OpenVera, HOPE, Taichi, SIL, Objective C++, Expect, BETA, Action!, Cg, PAWN, GLSL, Futhark, Felix, PL/M, LilyPond, progsbase, mgmt, IGOR Pro, UNLAMBDA, Slope, Euphoria, QB64, P4, Jule, JAI, Guile, MQL5, NCAR Command Language, Angelscript, Volt, LPC, Dockerfile, Rust MIR, beads-lang, Filebench WML, Spin, Pizza, Bel, Cryptol, KiXtart, JADE, Concise Encoding, blockml, Mu, Yoix, LotusScript, Logica, NetLinx, S3, ThinBasic, BlitzMax, ooc, Neko, LookML, Aldor, Lily, Apex, Nit, Gettext Catalog, clay, DM, OpenSCAD, Linden Scripting Language, Praat Script, GDScript, ARexx, CLOS, Mask, Eclipse Command Language, ArkScript, ShaderLab, Tea, PIC, SugarSS, Whiley, Not Quite C, FutureBASIC, StarOffice Basic, Fancy, Harbour, carth, Joy, COMPONENT PASCAL, zephyr-asdl, mun-lang, Observable, CartoCSS, SCSS, Ch, Jasmin, RenderScript, Literate Agda, Refal, storyscript, WebIDL, Game Maker Language, JSON with Comments, Turbo Basic, Edje Data Collection, PowerBASIC, Slice, SimCode, omega, CLIST, OX, Alpine Abuild, BLISS, Vigil, Script.NET, GCC Machine Description, ActiveVFP, OpenEdge ABL, Shen, C2, spry, Cell, groff, Brightscript, winxed, Spatial, Pan, Strips, MVEL, Flow9, Cycript, Raku, SMT, Caché Basic, Ezhil, Logtalk, SRecode Template, Fibonacci, Not eXactly C, Mary, MAXScript, LoomScript, Creative Basic, Type Language, lispyscript, MOO, Treelang, dex, Opal, Arden syntax, NetRexx, Quaint, Cypher Query Language, Operational Control Language, VHDL-AMS, Fable, FML, Gerbil Scheme, Maya Embedded Language, Logos, Handel-C, Dale, neut, HiveQL, NestedText, tht, monte, Guix Workflow Language, S-PLUS, Lingo, Vale, gentee, MACRO-10, KRL, Q#, basic calculator, XBLite, Plus, Module Management System, turnstile, OCL, dslx, spiral, Xbasic, ACL2, Rc, BitBake, Gentoo Ebuild, PROMAL, Rescript, Simple Actor Language System and Architecture, Grammatical Framework, Parser 3, neeilang, hilvl, NS Basic, RELAX NG, JSLT, Mako, Yet Another Scripting Language, Frink, Tuple space, Redcode, Gherkin, flagship, Nymph, Recfiles, Jsonnet, CIR, Parrot BASIC, Orc, Language Server Index Format, Ligo, ddfql, HAGGIS, Z, DAX, dlvm, PowerQuery M, Ren, Hocon, holyc, silk, Uniform eXchange Format, txr, Zimpl, manool, Boron, Mouse, Claro, Adventure Game Studio Script, C shell, Charity, Pawn, owen-lang, epsilon, GraphQL Schema Definition Language, HuJSON, popr, kai, JS++, CFScript, ldpl, pointless, Sophia, Project Mentat, Judoscript, parasail, Finite State Language, Soy, StruQL, NESL, Augeas, dedukti, Fjölnir, z80, verifpal, Yedalog, Structured Query Reporter, Heron, taf, BuddyScript, fizz, OEM, JSL, Easytrieve, Lite-C, Caché ObjectScript, Atomese, Manchester syntax, FloScript, xxl, Reactive Plan Language, tremor-query, blz, rosette-lang, TAL, Wart, Action Code Script, wah, XPL0, ISETL, Boogie, rbs, Savi, Pnuts, Bla, False, Lexon, Portable Bit Map Format, CLPR, Urbiscript, YAMP, stella, ca65 Assembly, ctalk-lang, Rita, ProbeVue, Plot, Netpbm grayscale image format, RLaB, OptimJ, AmbientTalk, Robots.txt, ppm-format, Amazon Redshift, USD, wescheme, lain, luau, bioscript, sora, SubX, Spice, Sweet Expressions, PromQL, SNOBOL4, KonsolScript, SARL, Oracle Java, boa, Deesel, rbscript, Smithy, PacmanConf, PkgConfig, BABEL, Lighttpd configuration file, Tick C, bawk, cooC, S-Snobol, GAEA, ADLIB, Static Typescript, Extended Pascal, Modula-2+, PL/I-FORMAC, Progol
Languages without Comments include JSON, Regular Expressions, JSONiq, Tree Notation, Superjson, JCOF
This question asks: Does the language have a syntax and support for comments?
Read more about Comments on the web: 1. 2.
HTML of this page generated by Features.ts