First try: seemingly not, because this file does not render to HTML with 
comments:

;;;;;;;;;;;;;;;;;;;;;;;;;;;
#lang scribble/lp2

@chunk[<*>
       (define (f x) ; not g
         ;; amazing computation
         (* x x))]
;;;;;;;;;;;;;;;;;;;;;;;;;;;

In HTML it becomes this:

<*> ::=
(define (f x)
 
  (* x x))


Second try: Docs suggest use of CHUNK + UNSYNTAX [1] but this next try fails 
with "UNSYNTAX: unbound identifier"

;;;;;;;;;;;;;;;;;;;;;;;;;;;
#lang scribble/lp2

@CHUNK[<*>
       (define (f x) ; not g
         @UNSYNTAX{;; amazing computation}
         (* x x))]
;;;;;;;;;;;;;;;;;;;;;;;;;;;


Third try: also tried scribble/comment-reader [2] but this doesn't work 
(apparently because `racketblock` knows about `code:comment` but `chunk` does 
not:

;;;;;;;;;;;;;;;;;;;;;;;;;;;
#lang scribble/lp2

@#reader scribble/comment-reader
(chunk <*>
  (define (f x) ; not g
    ;; amazing computation
    (* x x)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;

[1] 
http://docs.racket-lang.org/scribble/lp.html?q=CHUNK#%28form._%28%28lib._scribble%2Flp..rkt%29._.C.H.U.N.K%29%29

[2] 
http://docs.racket-lang.org/scribble/scribble_manual_code.html?q=comment-reader#%28mod-path._scribble%2Fcomment-reader%29


-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to