Top 1,000 Features Creators Events Podcasts Extensions Interviews Blog Explorer CSV

Comments

< >
Example from 167 languages: JavaScript, C, Go, TypeScript, C#, Objective-C, Solidity, Reason, Groovy, Pug, HCL, Protocol Buffers, JSON5, Yacc, Deno, OpenCL, odin, ANTLR, Flow, V, Ballerina, FLUX, Less, Wren, PEG.js, DOT, Zephir, Jsonnet, Vala, Koka, QML, Bicep, Eve, Halide, Dafny, mlir, Hack, Taichi, POV-Ray SDL, Ceylon, SystemVerilog, Cue, PowerBuilder, Click, idyll, JAI, eC, Bison, Ron, Felix, BCPL, CIL, AspectJ, SuperCollider, SCSS, Flow9, SugarSS, xBase, Modelica, ATS, Fantom, mun-lang, PAWN, Whiley, P4, Objective C++, JSON with Comments, Cg, Clipper, Angelscript, IGOR Pro, dlvm, Argdown, JADE, Logos, Objective-J, Harbour, Ligo, Alloy, Volt, CIL, MQL5, Mask, Croc, DAX, Cypher Query Language, Concise Encoding, Spatial, Java Bytecode, OX, spiral, Script.NET, Linden Scripting Language, Not Quite C, DM, LPC, HuJSON, NetLinx, Game Maker Language, Vale, BETA, Strips, Sophia, Cycript, Slice, CIR, LoomScript, Nymph, Hocon, MiniD, Cell, CartoCSS, Type Language, gentee, Not eXactly C, Adventure Game Studio Script, Maya Embedded Language, KRL, ShaderLab, kai, tht, silk, Heron, OpenVera, XBase++, MVEL, NS Basic, Yoix, xxl, winxed, Rescript, Lite-C, neeilang, Language Server Index Format, Judoscript, Rust MIR, FutureBASIC, OEM, SIL, PowerQuery M, owen-lang, Q#, SimCode, Tuple space, Fable, Pnuts, hilvl, Action Code Script, beads-lang, fizz, flagship, JSL, 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
Example from 1 languages: MATLAB
% This is a comment
Example from 1 languages: Haskell
-- a single line comment {- A multiline comment which can continue for many lines -}
Example from 1 languages: Erlang
% hello world program
Example from 1 languages: Dart
// Hi /* Assume address is not null. */
/* A comment */
-- 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: OCaml
(* This is a single-line comment. *) (* This is a * multi-line * comment. *)
Example from 1 languages: SPSS
* A comment where first character must be *.
; A comment
Example from 1 languages: HAML
-# A comment
Example from 1 languages: Ini
# a '#' or ';' character indicates ; a comment
' A comment
Example from 1 languages: MongoDB
$comment: "A 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: C3
// A comment /* Another comment */
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 7 languages: Oberon, EBNF, Isabelle, UrWeb, Fortress, Bluespec, COMPONENT PASCAL
(* A comment *)
Example from 1 languages: Slope
; I am a comment
Example from 1 languages: Twig
{# A comment #}
Example from 1 languages: TLA
\* 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 3 languages: SNOBOL, Refal, ActiveVFP
* A comment
Example from 1 languages: popr
__ A comment
Example from 1 languages: Jule
// A comment /* A comment */
Example from 1 languages: RELAX NG
# Comments start with a # and continue to the end of the line:
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?
Example from 1 languages: dedukti
(; This is a comment ;)
! A comment
Example from 1 languages: Orc
{- A comment -}
Example from 1 languages: HAGGIS
''' A comment '''
Example from 1 languages: Mouse
~ 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: Uniform eXchange Format
# <This is 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: Turbo Pascal
{ within pairs of braces } (* left parenthesis/asterisk and asterisk/right parenthesis pairs *) // preceded by two forward slashes
Example from 1 languages: Speedie
// comment
Example from 1 languages: Quaint
;; A comment
Example from 1 languages: Crap
/* A comment */
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, 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

*

Read more about Comments on the web: 1. 2.

View source

- Build the next great programming language · About · Resources · Acknowledgements · Part of the World Wide Scroll