[xml2rfc] sourcecode copy to clipboard
Robert Moskowitz <rgm@htt-consult.com> Mon, 03 July 2023 12:26 UTC
Return-Path: <rgm@htt-consult.com>
X-Original-To: xml2rfc@ietfa.amsl.com
Delivered-To: xml2rfc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0DD06C14CE29 for <xml2rfc@ietfa.amsl.com>; Mon, 3 Jul 2023 05:26:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.197
X-Spam-Level:
X-Spam-Status: No, score=-4.197 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7aVVe3nAi7Rc for <xml2rfc@ietfa.amsl.com>; Mon, 3 Jul 2023 05:26:24 -0700 (PDT)
Received: from z9m9z.htt-consult.com (z9m9z.htt-consult.com [23.123.122.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 41BE9C14CF12 for <xml2rfc@ietf.org>; Mon, 3 Jul 2023 05:26:24 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by z9m9z.htt-consult.com (Postfix) with ESMTP id A61F3625DA for <xml2rfc@ietf.org>; Mon, 3 Jul 2023 08:26:01 -0400 (EDT)
X-Virus-Scanned: amavisd-new at htt-consult.com
Received: from z9m9z.htt-consult.com ([127.0.0.1]) by localhost (z9m9z.htt-consult.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id B8WgpUemHX77 for <xml2rfc@ietf.org>; Mon, 3 Jul 2023 08:25:57 -0400 (EDT)
Received: from [192.168.160.29] (unknown [192.168.160.29]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by z9m9z.htt-consult.com (Postfix) with ESMTPSA id D013A6250B for <xml2rfc@ietf.org>; Mon, 3 Jul 2023 08:25:54 -0400 (EDT)
Message-ID: <e91825a2-7191-2301-bd8f-532814763696@htt-consult.com>
Date: Mon, 03 Jul 2023 08:26:12 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0
Content-Language: en-US
To: "xml2rfc@ietf.org" <xml2rfc@ietf.org>
From: Robert Moskowitz <rgm@htt-consult.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/VBeAhe_PRf3YQCHb4p-ufHs3cZI>
Subject: [xml2rfc] sourcecode copy to clipboard
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: XML2RFC discussion list <xml2rfc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xml2rfc>, <mailto:xml2rfc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/xml2rfc/>
List-Post: <mailto:xml2rfc@ietf.org>
List-Help: <mailto:xml2rfc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xml2rfc>, <mailto:xml2rfc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 03 Jul 2023 12:26:30 -0000
I am finally switching a draft from artwork to trying to properly use sourcecode. I see that in the html rendering, there is really no difference? I have <![CDATA[ ]]> inside them. I see that the name attribute is not used by xml2rfc, but there for other processes that might like to use it. What I am looking for right now is a way to copy the source code at least to the clipboard. Some 4 years ago I did this with java script: http://medon.htt-consult.com/CentOS7-armv7.html You will see I have two modes, just select the text or actually copy the text to the clipboard. It also supports horizontal scrolling in the textbox. In http://medon.htt-consult.com/Centos7-mailserver.html You will see vertical scrolling support which might be more of value to large sourcecode blocks. It seems this could be a nice addition to the html draft rendering. It DOES use java scripting. And I really hacked this together until I got something that worked well enough for me. I don't claim at all that it is the best way to add these features. Bob
- [xml2rfc] sourcecode copy to clipboard Robert Moskowitz
- Re: [xml2rfc] sourcecode copy to clipboard Carsten Bormann
- Re: [xml2rfc] sourcecode copy to clipboard Robert Moskowitz
- Re: [xml2rfc] sourcecode copy to clipboard Robert Moskowitz
- Re: [xml2rfc] sourcecode copy to clipboard Carsten Bormann
- Re: [xml2rfc] sourcecode copy to clipboard Martin J. Dürst
- Re: [xml2rfc] sourcecode copy to clipboard Robert Moskowitz