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

Line Comments

< >
Example from 203 languages: JavaScript, C, Java, PHP, Go, TypeScript, C#, Swift, Rust, Scala, Kotlin, Objective-C, Dart, Solidity, Reason, D, Haxe, Groovy, F#, Chapel, Pug, HCL, Protocol Buffers, Deno, JSON5, Yacc, OpenCL, ANTLR, odin, Delphi, V, Stata, Verilog, FLUX, Ballerina, Squirrel, Wren, Less, PEG.js, Flow, Zephir, DOT, Koka, Vala, Lex, QML, C3, Jsonnet, Eve, Halide, Processing, Dafny, Bicep, mlir, Hack, Ceylon, POV-Ray SDL, SystemVerilog, ECL, Scilab, JAI, Click, Cue, Taichi, idyll, Clean, eC, PowerBuilder, Felix, Nemerle, Ron, BCPL, CIL, AspectJ, SuperCollider, Dylan, Observable, Xojo, Flow9, SCSS, Modelica, Bison, xBase, ATS, SugarSS, Io, Fantom, Pike, Lasso, OpenSCAD, P4, Whiley, PAWN, mun-lang, Cg, Angelscript, JSON with Comments, Ch, IGOR Pro, dlvm, Objective C++, Clipper, Java Bytecode, JADE, Logos, Argdown, Objective-J, Alloy, Harbour, Cypher Query Language, CIL, MQL5, Ligo, Apex, Falcon, DAX, Mask, Volt, Concise Encoding, Spatial, Croc, OX, Script.NET, Linden Scripting Language, spiral, Not Quite C, LPC, DM, NetLinx, Jule, 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, Frink, kai, XBase++, silk, OpenVera, MVEL, tht, JS++, 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, Ion, 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
-- A comment
% A comment
; A comment
Example from 5 languages: SAS, ABAP, SNOBOL, Refal, ActiveVFP
* A comment
Example from 1 languages: COBOL
MOVE ABC to XYZ *> This is a comment.
' A comment
Example from 1 languages: Fortran
C A comment
Example from 1 languages: HAML
-# A comment
Example from 1 languages: Forth
\ A comment
Example from 1 languages: APL
⍝ A comment
Example from 1 languages: J
NB. A comment
Example from 2 languages: BASIC, Batchfile
REM A comment
Example from 1 languages: Slope
; I am a comment
! A comment
Example from 1 languages: K
/ A comment
Example from 1 languages: TLA
\* A comment
Example from 1 languages: popr
__ A comment
Example from 1 languages: High Level Assembly
// comment
Example from 1 languages: Cyber
-- Counts iterations.
Example from 1 languages: HOPE
--- A comment
Example from 1 languages: Mouse
~ A comment
Example from 1 languages: Uniform eXchange Format
#<A comment>
Example from 1 languages: Quaint
;; A comment
Example from 1 languages: Lexon
COMMENT A comment
Example from 1 languages: GraphQL Schema Definition Language
“”” A comment
*

Languages with Line Comments include JavaScript, Python, C, Java, Perl, Ruby, PHP, Go, TypeScript, SQL, C#, R, Bash, PowerShell, Swift, Rust, Scala, Lua, MATLAB, Haskell, Kotlin, Clojure, Elixir, CoffeeScript, Objective-C, Julia, SAS, Erlang, Prolog, COBOL, Dart, Solidity, Visual Basic, Ada, Nim, YAML, Fortran, PostgreSQL, Racket, TOML, Crystal, Zig, Reason, MySQL, D, Elm, Scheme, Haxe, GraphQL, WebAssembly, Groovy, awk, Tex, F#, Chapel, Pug, LLVM IR, ClojureScript, PureScript, VHDL, HCL, HAML, Idris, Protocol Buffers, Forth, Visual Basic .NET, Ini, Deno, APL, JSON5, Yacc, ARM, LaTeX, OpenCL, J, Red, fish, Maple, Embedded Crystal, ANTLR, odin, Lean, Delphi, sed, V, Stata, ABAP, Verilog, Tcl, Pony, FLUX, BASIC, ActionScript, Hy, starlark, Dhall, KaTeX, Ballerina, AutoHotkey, Fennel, PostScript, Squirrel, Wren, Less, Common Lisp, API Blueprint, Eiffel, PEG.js, Smali, Cap'n Proto, MoonScript, MUMPS, Flow, VBScript, Zephir, Makefile, Frege, DOT, NetLogo, Nginx, Logo, Pig Latin, carp, PL/SQL, Batchfile, GNU Octave, Koka, Vala, M4, Lex, Terra, QML, C3, Jsonnet, Eve, Halide, PRQL, SPARQL, Processing, Dafny, Bicep, MIPS architecture, Nearley, mlir, Futhark, Agda, VBA, Emacs Lisp, Hack, Hjson, Ceylon, POV-Ray SDL, Applescript, QBasic, AMPL, SystemVerilog, unison, Expect, x86 Assembly, progsbase, NumPy, YASnippet, GAP, ECL, Scilab, JAI, Click, Cue, Slope, Cryptol, AutoIt, AGC, Taichi, Golo, Simula, idyll, wisp, GLSL, Transact-SQL, mgmt, Clean, WDL, eC, Sage, Boo, PowerBuilder, HLSL, Felix, Mercury, Nemerle, Ron, BCPL, CWL, Ring, CIL, AspectJ, SuperCollider, K, Dylan, Perl 6, Datalog, Observable, Mu, Oz, Logica, TLA, Xojo, Flow9, Nit, SCSS, Gosu, REBOL, Modelica, Bison, Shen, JCL, xBase, ATS, CLIPS, Pandas, SugarSS, Fancy, Io, Fantom, NSIS, datascript, Pike, LFE, ArkScript, Java Properties, X10, SourcePawn, NewLisp, LilyPond, Lasso, OpenSCAD, NCAR Command Language, Turing, P4, BlitzMax, PL/pgSQL, Csound, E, Icon, Whiley, Reia, FoxPRO, PureBasic, PAWN, mun-lang, LiveScript, Cg, Filebench WML, Angelscript, clay, JSON with Comments, Ch, Dockerfile, IGOR Pro, dlvm, Objective C++, Clipper, LiveCode, Nix, Java Bytecode, JADE, Logos, Monkey, Gherkin, Euphoria, GDScript, Argdown, lispyscript, SNOBOL, Objective-J, BlitzBasic, Classroom Object Oriented Language, Ragel, Vigil, Alloy, spry, Harbour, Gettext Catalog, dex, Praat Script, Cypher Query Language, Ren'Py, PicoLisp, CIL, MQL5, Ligo, Apex, Falcon, Pan, DAX, Mask, Volt, Concise Encoding, Netwide Assembler, OCL, Spatial, Guile, Gerbil Scheme, Augmented Backus-Naur Form, Tea, Croc, OX, C shell, Seed7, muPad, popr, Script.NET, UNLAMBDA, Linden Scripting Language, spiral, Not Quite C, Opal, High Level Assembly, neut, Gentoo Ebuild, Cyber, LPC, JSLT, DM, RELAX NG, NetLinx, BitBake, NestedText, Jule, Game Maker Language, Eclipse Command Language, S-PLUS, Jasmin, PEG, Strips, HuJSON, Redcode, HOPE, Dc, SETL, Structured Query Reporter, Spin, BETA, SMT, HiveQL, Cycript, FloScript, Unicon, Z, Sieve mail filtering language, Slice, Sophia, Rc, CIR, ldpl, LoomScript, Hocon, PIC, storyscript, Sather, Vale, MiniD, Cell, Nymph, CartoCSS, Grammatical Framework, Ezhil, LookML, Refal, Type Language, SRecode Template, Brightscript, Not eXactly C, Maya Embedded Language, Adventure Game Studio Script, pointless, gentee, ShaderLab, GCC Machine Description, BLISS, QB64, KRL, Charity, HXML, Parser 3, Mouse, Action!, PowerBASIC, Aldor, Frink, Savi, kai, S-algol, KiXtart, Alpine Abuild, XBase++, silk, manool, OpenVera, Wart, Uniform eXchange Format, MVEL, Raku, Project Mentat, tht, EuLisp, JS++, Heron, NS Basic, Mary, Easytrieve, Yoix, parasail, Lite-C, Yet Another Scripting Language, Fjölnir, Aardvark, Rescript, winxed, xxl, Judoscript, PROMAL, Quaint, Language Server Index Format, neeilang, Bel, taf, carth, FutureBASIC, Rust MIR, VHDL-AMS, Tuple space, Pawn, Boron, Xbasic, SIL, PowerQuery M, Amazon Redshift, True BASIC, Rita, Q#, owen-lang, SimCode, OEM, Claro, BuddyScript, Pnuts, Ion, MACRO-10, Ren, ISETL, ActiveVFP, Action Code Script, Fable, omega, z80, blz, Recfiles, StarOffice Basic, CLOS, Operational Control Language, hilvl, AmbientTalk, ThinBasic, Zimpl, PromQL, Guix Workflow Language, flagship, fizz, beads-lang, Atomese, JSL, stella, Spice, rosette-lang, Plot, Lexon, epsilon, Boogie, boa, OptimJ, XBLite, holyc, Treelang, verifpal, Sweet Expressions, lain, Parrot BASIC, FML, 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, CFScript, ppm-format, Netpbm grayscale image format, Portable Bit Map Format, dslx, ctalk-lang, Creative Basic, wescheme, PkgConfig, PacmanConf, turnstile, ddfql, tremor-query, rbscript, zephyr-asdl, sora, Lighttpd configuration file

*

Languages without Line Comments include HTML, CSS, JSON, XML, Mathematica, Pascal, Markdown, OCaml, SPSS, Smalltalk, SVG, Standard ML, XQuery, ML, Regular Expressions, Wolfram Language, OWL, Modula-2, Rexx, Modula-3, Object Pascal

*

View all concepts with or missing a hasLineComments measurement

*

Read more about Line Comments on the web: 1.

View source

- Build the next great programming language · About · Acknowledgements · Extensions · Day 630 · Donate · feedback@pldb.io