Line Comments

siteTitle PLDB: A Programming Language Database

siteDescription PLDB: a Programming Language Database. Build the next great programming language.

github https://github.com/breck7/pldb

html,body,div,span,h1,h2,h3,h4,p,ol,ul,table,figure { margin: 0; padding: 0; border: 0; vertical-align: baseline; border-spacing: 0; } html { padding: 4px; background-color: rgb(244,244,244); font-family: Exchange,Georgia,serif; color: #000; font-size: 14px; hyphens: auto; } .scrollHeaderComponent svg { width: 30px; height: 30px; fill: rgba(204,204,204,.8); } .scrollHeaderComponent svg:hover { fill: #333; } .scrollHeaderComponent a { color: rgba(204,204,204,.8); position: absolute; font-size: 30px; line-height: 27px; text-decoration: none; } .scrollHeaderComponent a:hover { color: #333; } .scrollHeaderComponent .scrollTopLeftBarComponent { text-align: left; left: 25px; } .scrollHeaderComponent .scrollTopRightBarComponent { text-align: right; right: 25px; } .scrollHeaderComponent a.scrollPrevPageLink { left: 3px; } .scrollHeaderComponent a.scrollNextPageLink { right: 3px; } .scrollFooterComponent { margin-top: 8px; padding-top: 8px; text-align: center; } .scrollFooterComponent svg { width: 30px; height: 30px; fill: rgba(204,204,204, .5); padding: 0 7px; } .scrollFooterComponent svg:hover { fill: #333; } .scrollCommunityLinkComponent { display: block; font-family: Verdana; font-weight: 100; margin: .5em; text-decoration: none; color: rgba(204,204,204,.5); } .scrollColumnsComponent { column-count: auto; column-fill: balance; column-width: 35ch; column-gap: 20px; padding-left: 20px; padding-right: 20px; margin: auto; } .scrollSnippetContainerComponent { padding: 1ch 0; break-inside: avoid; text-align: justify; } .scrollTitleComponent { text-align: center; margin-bottom: .25em; } .scrollTitleComponent a { text-decoration: none; color: #000; } .scrollDateComponent { font-style: italic; font-size: 80%; } .scrollParagraphComponent { margin-top: 0.4em; line-height: 1.4em; } .scrollQuoteComponent { break-inside: avoid; display: block; margin: .5em 0; padding: .5em; background: rgba(204,204,204,.5); white-space: pre-line; border-left: .5em solid rgba(204,204,204,.8); } .scrollSectionComponent { break-inside: avoid; } .scrollSectionComponent h3 { margin-top: 1em; text-align: center; } .scrollSectionComponent h4 { margin-top: 1em; text-align: center; } h4.scrollQuestionComponent { text-align: left; } .scrollNoteLink { text-decoration: none; opacity: .4; } .scrollNoteIndex { text-decoration: none; } code { font-size: 90%; background-color: rgba(204,204,204,.5); padding: 2px 4px; border-radius: 4px; } .scrollCodeBlockComponent { overflow: auto; font-size: 80%; hyphens: none; white-space: pre; border-left: .5em solid rgba(204,204,204,.8); break-inside: avoid; display: block; margin: .5em 0; padding: .5em; border-radius: 0; } .scrollTableComponent { table-layout: fixed; margin: .5em 0; overflow: hidden; font-size: 80%; width: 100%; hyphens: none; border: 1px solid rgba(224,224,224,.8); } .scrollTableComponent td,.scrollTableComponent th { padding: 3px; overflow: hidden; } .scrollTableComponent th { border-bottom: 2px solid rgba(0,0,0,.6); text-align: left; } .scrollTableComponent tr:nth-child(even) { background: rgba(224,224,224,.6); } .scrollAuthor { font-size: 12px; font-style: italic; margin: 4px 0; text-align: center; } .scrollKpiTable { width: 100%; font-size: 30px; text-align: center; font-weight: bold; break-inside: avoid; margin-top: 8px; margin-bottom: 8px; } .scrollKpiTable td { width: 33.3%; border: 1px solid #e8e8e8; } .scrollKpiTable span { font-size: 20p;; display: block; } .scrollFileViewSourceUrlComponent { text-align: center; font-size: 80%; margin: 0; margin-top: 0.4em; line-height: 1.4em; margin-bottom: 1em; } .scrollFileViewSourceUrlComponent a { color: #000; text-decoration: none; } .scrollContinueReadingLink { display: block; text-align: center; } .scrollDialogueComponent span { font-family: Verdana; margin-top: 5px; padding: 5px 20px; border-radius: 15px; display: inline-block; } .scrollDialogueComponentLeft { text-align: left; } .scrollDialogueComponentLeft span { background: rgba(204,204,204, .5); } .scrollDialogueComponentRight { text-align: right; } .scrollDialogueComponentRight span { color: white; background: rgb(0,132,255); } .scrollCaptionedComponent { display: block; text-align: center; } .scrollCaptionedComponent img { max-width: 98%; height: auto; } .scrollCaptionedComponent figcaption { font-style: italic; } .scrollKeyboardNav { display: none; } .scrollHoverNote { text-decoration: underline dashed 1px rgba(0,0,0,.1); cursor: default; } .youTubeHolder { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; } .youTubeEmbed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

maxColumns 2

< >

View source

Built with Scroll v54.1.0

maxColumns 4

htmlTitle Line Comments - Feature

paragraph

paragraph

list


paragraph

paragraph

Example from Java, JavaScript, C, C++, PHP, C#, Go, Swift, Scala, Rust, TypeScript, Kotlin, Objective-C, Dart, Reason, F#, Delphi, Verilog, Solidity, Yacc, D, Groovy, OpenCL, Chapel, Haxe, CIL, ANTLR, Lasso, V, Protocol Buffers, BCPL, Processing, idyll, FLUX, Hack, DOT, Rust MIR, Dylan, Fantom, Ballerina, Zephir, Squirrel, Vala, Pug, Scilab, Flow, QML, Click, xBase, Java Bytecode, JSON5, Ceylon, Nemerle, Clean, Io, Stata, SuperCollider, SystemVerilog, HCL, Bison, odin, Wren, Dafny, Pike, ATS, Deno, Lex, Xojo, Alloy, Modelica, Bicep, PEG.js, halide, Clipper, Objective-J, Less, PowerBuilder, AspectJ, XBase++, Falcon, mlir, Ion, Cue, Argdown, CIL, Koka, Eve, eC, Ron, SIL, Cg, OpenVera, PAWN, BETA, Taichi, Felix, P4, IGOR Pro, MQL5, JAI, Angelscript, LPC, Volt, Jule, beads-lang, NetLinx, MiniD, Yoix, JADE, Concise Encoding, OpenSCAD, Apex, DM, Linden Scripting Language, Mask, ShaderLab, Whiley, SugarSS, Ch, FutureBASIC, Harbour, POV-Ray SDL, CartoCSS, Observable, Game Maker Language, Objective C++, Slice, SimCode, ECL, OX, Not Quite C, mun-lang, Script.NET, Strips, SCSS, Spatial, Cycript, winxed, MVEL, Cell, Flow9, LoomScript, Type Language, Not eXactly C, Treelang, c3, Cypher Query Language, Operational Control Language, Fable, Logos, Maya Embedded Language, KRL, tht, Q#, spiral, Vale, JSON with Comments, Rescript, dslx, NS Basic, DAX, CIR, gentee, Frink, flagship, CFScript, Tuple space, PowerQuery M, ddfql, neeilang, hilvl, Hocon, holyc, Adventure Game Studio Script, Nymph, Jsonnet, JS++, Language Server Index Format, Ligo, epsilon, HuJSON, Soy, silk, Judoscript, verifpal, Finite State Language, StruQL, owen-lang, kai, fizz, Sophia, OEM, JSL, Lite-C, Heron, Action Code Script, dlvm, xxl, ctalk-lang, Pnuts, OptimJ, sora, rbscript:
// A comment
Example from Python, Perl, Ruby, R, PowerShell, Elixir, Julia, Tcl, Bash, Crystal, awk, CoffeeScript, YAML, Maple, Sage, GraphQL, Smali, Nim, Nginx, MIPS architecture, fish, PicoLisp, AMPL, Nearley, TOML, Icon, Makefile, Boo, SPARQL, AGC, API Blueprint, Perl 6, E, LiveScript, M4, Seed7, YASnippet, starlark, PRQL, Dc, CWL, WDL, Ren'Py, Java Properties, Ragel, Unicon, Ring, Hjson, Expect, UNLAMBDA, Filebench WML, Dockerfile, mgmt, LookML, Mu, Logica, GDScript, ArkScript, PIC, Tea, storyscript, Praat Script, Alpine Abuild, Golo, Vigil, GAP, spry, Reia, Pan, Raku, Ezhil, FML, S-PLUS, BitBake, NestedText, Gentoo Ebuild, RELAX NG, Rc, Parser 3, Gherkin, Parrot BASIC, Yet Another Scripting Language, Recfiles, Embedded Crystal, Zimpl, C shell, Claro, Yedalog, BuddyScript, ldpl, tremor-query, rbs, Portable Bit Map Format, Wart, Netpbm grayscale image format, Robots.txt, ppm-format, SubX, blz:
# A comment
Example from SQL, MySQL, Haskell, PostgreSQL, Ada, Lua, Eiffel, Elm, VHDL, Idris, Applescript, PureScript, MoonScript, Terra, PL/SQL, Agda, Frege, Dhall, Pig Latin, Classroom Object Oriented Language, Transact-SQL, unison, SETL, Sather, LiveCode, Euphoria, Aldor, zephyr-asdl, Literate Agda, omega, dex, Opal, VHDL-AMS, HiveQL, OCL, Grammatical Framework, Z, manool, Bla, ISETL, Amazon Redshift, luau:
-- A comment
Example from MATLAB, Prolog, Erlang, LaTeX, PostScript, Oz, Tex, GNU Octave, Turing, Mercury, Datalog, KaTeX, Eclipse Command Language, Mary, Charity:
% A comment
Example from Fortran:
C A comment
Example from COBOL:
MOVE ABC to XYZ *> This is a comment.
Example from ARM, Clojure, Scheme, Racket, Common Lisp, LLVM IR, Red, LFE, PureBasic, Logo, REBOL, EuLisp, AutoIt, MUMPS, Emacs Lisp, x86 Assembly, Hy, CLIPS, Ini, Csound, NetLogo, AutoHotkey, wisp, NSIS, Netwide Assembler, Augmented Backus-Naur Form, Fennel, datascript, carp, Action!, Guile, NCAR Command Language, KiXtart, CLOS, carth, Jasmin, GCC Machine Description, SMT, SRecode Template, Bel, lispyscript, Gerbil Scheme, Guix Workflow Language, MACRO-10, turnstile, neut, PROMAL, Boron, Ren, z80, Fjölnir, Project Mentat, taf, atomese, Reactive Plan Language, rosette-lang, ca65 Assembly, stella, Plot, wescheme, Sweet Expressions, lain:
; A comment
Example from SAS, ABAP, SNOBOL, Refal, ActiveVFP:
* A comment
Example from Visual Basic, VBA, Visual Basic .NET, VBScript, Monkey, WxBasic, QB64, Spin, ThinBasic, Turbo Basic, StarOffice Basic, PowerBASIC, Brightscript, Caché Basic, Creative Basic, XBLite, Xbasic:
' A comment
Example from BASIC, Batchfile:
REM A comment
Example from APL:
⍝ A comment
Example from Forth:
\ A comment
Example from Simula, S-algol, True BASIC, BLISS, Module Management System, Structured Query Reporter:
! A comment
Example from HAML:
-# A comment
Example from J:
NB. A comment
Example from TLA:
\* A comment
Example from K:
/ A comment
Example from HOPE:
--- A comment
Example from Slope:
; I am a comment
Example from Quaint:
;; A comment
Example from Mouse:
~ A comment
Example from GraphQL Schema Definition Language:
“”” A comment
Example from popr:
__ A comment
Example from Lexon:
COMMENT A comment
octals-feature.html · line-comments-feature.html · multiline-comments-feature.html