Top 1,000 Features Creators Resources Extensions Blog Explorer CSV Download
GitHub icon

Comments

< >
Example from 167 languages: JavaScript, C, Go, TypeScript, C#, Objective-C, Solidity, Reason, Groovy, Pug, HCL, Protocol Buffers, Deno, JSON5, Yacc, OpenCL, ANTLR, odin, V, FLUX, Ballerina, Wren, Less, PEG.js, Flow, Zephir, DOT, Vala, Koka, Jsonnet, Eve, QML, Bicep, Halide, Dafny, mlir, Hack, POV-Ray SDL, Ceylon, SystemVerilog, Taichi, Click, Cue, JAI, idyll, eC, PowerBuilder, Felix, Ron, Bison, BCPL, CIL, AspectJ, SuperCollider, SCSS, Flow9, SugarSS, Modelica, xBase, ATS, Fantom, PAWN, mun-lang, P4, Whiley, JSON with Comments, Cg, Angelscript, IGOR Pro, Clipper, Objective C++, dlvm, JADE, Logos, Java Bytecode, Argdown, Objective-J, Alloy, Harbour, Cypher Query Language, Mask, Volt, Ligo, CIL, MQL5, DAX, Concise Encoding, Spatial, Croc, OX, Script.NET, Linden Scripting Language, Not Quite C, spiral, LPC, DM, NetLinx, Game Maker Language, HuJSON, Strips, BETA, Cycript, Sophia, Vale, Slice, CIR, LoomScript, Hocon, MiniD, Cell, CartoCSS, Nymph, Type Language, gentee, Not eXactly C, Adventure Game Studio Script, Maya Embedded Language, ShaderLab, KRL, kai, tht, XBase++, silk, OpenVera, Heron, MVEL, NS Basic, Yoix, Lite-C, Rescript, winxed, xxl, Judoscript, Language Server Index Format, neeilang, Rust MIR, FutureBASIC, Tuple space, SIL, PowerQuery M, Q#, owen-lang, SimCode, OEM, Pnuts, Fable, Action Code Script, hilvl, Operational Control Language, beads-lang, fizz, flagship, JSL, epsilon, OptimJ, holyc, Treelang, verifpal, Finite State Language, Soy, StruQL, CFScript, ctalk-lang, dslx, 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
' A comment
Example from 1 languages: Ini
# a '#' or ';' character indicates ; 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: Batchfile
REM A comment :: Another type of comment
Example from 1 languages: C3
// A comment /* Another 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: 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: groff
Test \" comment Test Test \# comment Test
Example from 1 languages: popr
__ A comment
Example from 1 languages: RELAX NG
# Comments start with a # and continue to the end of the line:
Example from 1 languages: Jule
// A comment /* A comment */
Example from 1 languages: HOPE
--- A comment
! 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 ;)
Example from 1 languages: HAGGIS
''' A comment '''
Example from 1 languages: Orc
{- A comment -}
Example from 1 languages: Mouse
~ A comment
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: Uniform eXchange Format
# <This is a comment>
Example from 1 languages: Speedie
// 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: Quaint
;; A comment
Example from 1 languages: S3
@ a comment @
Example from 1 languages: Lexon
COMMENT A comment
Example from 1 languages: Fibonacci
(* query examples *)
Example from 1 languages: FML
# This is a line comment ### This is a block comment ###
*

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