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

*

Languages without Comments include JSON, Regular Expressions, Tree 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 · Extensions · Day 630 · Donate · feedback@pldb.io