From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 452AC247D7 for ; Wed, 24 Jan 2024 23:08:11 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 033F74840AD for ; Wed, 24 Jan 2024 23:05:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5rtKpgNHkyOK for ; Wed, 24 Jan 2024 23:05:20 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id F2DD548406A for ; Wed, 24 Jan 2024 23:04:20 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 4F82B4840EC for ; Wed, 24 Jan 2024 23:03:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZwuT1JoLq2rO for ; Wed, 24 Jan 2024 23:03:33 +0100 (CET) Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 9B708483F43 for ; Wed, 24 Jan 2024 23:02:10 +0100 (CET) Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a2d7e2e7fe0so27298866b.1 for ; Wed, 24 Jan 2024 14:02:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706133730; x=1706738530; darn=ntg.nl; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=yBfvE4vauK6fjv1yKbRa010ldwpzDGc/vuwb3EmgBc0=; b=Z1e9ekzzPdob6glpTJh/iiY3lb9F9UpFV2fmZvJWbGsfrYP7vz8k73V8NhkXXGWxFl BKmIzih85MOs8KmLey+AtrnpVKGaA11LIKGmZ5AKQK0t66muyVPXrflH82cVm6pU/544 9Gf+ifFiIuLbPzI52ZovBj9jU1NgiVDOo9UCed1vDmVJSf6RaWQJ+1y1hCH4z2UQ5ZaS 1KocjOXmPC+l16TwXD5qdsF6sX/mOE8M5CVFBzBkdj9N10jV30P7IKvpjS1tcdY5Ezhq 1clMj5qXBxR7MA1IF2daty6roQLxgH4WO9ei9f5cmNbPYDl5H+IuToR0+QC9Sky1Ju9l CG7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706133730; x=1706738530; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yBfvE4vauK6fjv1yKbRa010ldwpzDGc/vuwb3EmgBc0=; b=ayIHbtf/1Ndf35qmzhg09h8G7oXbQl04EQsSKYFnvZ4a/R9ZcuM/IUOlY/9+Adikez 7DKzcIDa363YA6BO9gUoH6+ZKXAtVq2YSjEPzf6eZfnIzKsbxgbG42+qHY8XYFlXJ0ee 6SD6PAaTG3kLOn6x90RVFL7XwdtoUIEQzqjpsTyF+XaAxIvJSZpVbqUSDsNzEQh0gqre 0HFuBRFZ170mNOTBbr/kDjYnginfJ827GSRPLNkG3nayxcwBQUVKCzgRwRmWXjTyx8rL jtptEnNMdG03y0ViIZfy4v9acjsynEVC0K632FB+PWRBBkVBJjrz3iH/Es0CAFQimAqE GG1A== X-Gm-Message-State: AOJu0Ywa1tA1sP2DXg6fdONNymbQE4+pSCPWITjKeT7Tib1Ckvz7s+Ai 7I6OhEUYZpP5rNSWS4Xyymp5d3wmDSbPpiJ87BCcOCUoYINirfdx X-Google-Smtp-Source: AGHT+IEsV4QfKF1JgPmlDJLbgA5le2M5fYF1HJWvDt0phfXx++3dz2cN9q6/1NP58+Gcf1Eyvt1vug== X-Received: by 2002:a17:907:a709:b0:a30:e8c4:a3d6 with SMTP id vw9-20020a170907a70900b00a30e8c4a3d6mr3503ejc.72.1706133729988; Wed, 24 Jan 2024 14:02:09 -0800 (PST) Received: from ?IPv6:2a02:810d:a8bf:dc10::a6a1? ([2a02:810d:a8bf:dc10::a6a1]) by smtp.gmail.com with ESMTPSA id o8-20020a170906288800b00a30c4871712sm296672ejd.202.2024.01.24.14.02.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jan 2024 14:02:09 -0800 (PST) To: mailing list for ConTeXt users , Shiv Shankar Dayal References: From: Wolfgang Schuster Message-ID: <95800b15-7a92-e0e2-5fe0-97ae6542f826@gmail.com> Date: Wed, 24 Jan 2024 23:02:07 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.60 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Message-ID-Hash: 5C5C6YJA675HM5OWSEQPWHNUQY3BO4RA X-Message-ID-Hash: 5C5C6YJA675HM5OWSEQPWHNUQY3BO4RA X-MailFrom: wolfgang.schuster.lists@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit Shiv Shankar Dayal schrieb am 24.01.2024 um 17:06: > I am writing two books. One is on Rust programming and another is on > geometry, so I have syntax highlighted code and in second has lost of > diagrams. > > Perhaps Aditya Mahajan can tell me how can I cache code snippets. > Invoking VIM will have heavy penalty on highlighting the code otherwise. You can also try to extend ConTeXt's syntax highlighter (or the scite module) to support Rust which solves the cache problem. Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________