From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: outline-minor-mode heading levels in C, C++, and html Date: Wed, 14 Aug 2024 23:45:45 +0700 Message-ID: References: <864j7nnwwe.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14390"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joel Reicher , Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 14 18:46:31 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1seH8n-0003ay-Ub for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 14 Aug 2024 18:46:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1seH8M-0007aE-6D; Wed, 14 Aug 2024 12:46:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1seH8K-0007Ud-Ni for help-gnu-emacs@gnu.org; Wed, 14 Aug 2024 12:46:00 -0400 Original-Received: from mail-ua1-x936.google.com ([2607:f8b0:4864:20::936]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1seH8J-0002cS-7H for help-gnu-emacs@gnu.org; Wed, 14 Aug 2024 12:46:00 -0400 Original-Received: by mail-ua1-x936.google.com with SMTP id a1e0cc1a2514c-823423e3accso6683241.2 for ; Wed, 14 Aug 2024 09:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723653957; x=1724258757; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gh1lCmnTcDm7ThrMvP3XJrWoxM6AMfA8dN5ztXHt/m4=; b=C8yINMilDu+JgG2DNtoBW5OyfZgTIPvFaHftQYNtqtePdv1GbQ6MFvzBjQ1Tu13AFg 8I4xTa+oYB9Fh6O+JfEXUebm3pi7jqQou8jSpVfGzItM4QcPG2SBiu4EkOvw9B8cz3qV hbMTQ/EKHaTn5fT3u8cFLgUGWTX6C0+xkYaeRfa3TLc2XYCXQj3iznnAbIqu8qByJQ0F Un9MM0R3C7otG2H0Jp+kPjiYeux92EqllUymw9ziRRpZfErwHlhPgguLJR1U8ViTQGT/ zziA3lEW/BBNzT7NF5QbHRJCauITuuGJPu15skhfH5zmOhHvnmDxnbdybvHFvv5HhgR+ F8Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723653957; x=1724258757; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gh1lCmnTcDm7ThrMvP3XJrWoxM6AMfA8dN5ztXHt/m4=; b=rB5fDosz5dh8CyErqScd9C83Fw2K56fWwaYB8ydMJjUb+/F3szhsOJvP7BiGRZlct9 b9I1XrQnZNhra6Q7PfZaQMUqe6ZeaqthHGp4hTThy6TXODmri4cve/wZGNawFKyJSMDc uhtdDrjDBcl52rQB3Wy9rQW8X17ZVO/5JY3T8Ig5IaOwj+2danj9Q6zk8l6QH5UonVNf rOkH9lD7jr3SVmY/ic32WyH81jvS3BZnUTJgucAxsDd1G4nwYs39r2ulx8t0xZn11hd+ mg+q52Cp6shxBSe8SnnF94p8DPSmhN1V5+9MHoN/yM441/9a+bFP4LiL2EmLdMpvSIvv a/og== X-Forwarded-Encrypted: i=1; AJvYcCXpvYjjXmDiIr62MjPWTFHNjIaBy2S3AwtW/kVmcRX2sZdD2wLEplI/SzHkLQGbLc5g1dXpeT1Jb+Sj/vr4GTE1XCkfFCla X-Gm-Message-State: AOJu0YzeWX/DRY8CDdu04lQv4PahdiVfnyy/8qjZ2cTZzzUHxndqiVMx 6HrnMOsGSabvMHuWQ8gevXPsbb98hfIwPJDPYnifP0VP3584XzByeAuXK6VPF+Mtwh5iChZBShC Nd7HY2i+clXa0aVuwgufolkykWyE= X-Google-Smtp-Source: AGHT+IHtVlWY/dqShCxN6LPi6DHCU8BntKPTLQtD6SiaLdHbBQ7xxGc4cArUcmgOU5r6pzSM5X3eu3sjnRIfEVY9gt4= X-Received: by 2002:a05:6102:d8b:b0:493:e66f:6bac with SMTP id ada2fe7eead31-49759926c50mr3640959137.11.1723653957210; Wed, 14 Aug 2024 09:45:57 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::936; envelope-from=yurivkhan@gmail.com; helo=mail-ua1-x936.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147679 Archived-At: On Wed, 14 Aug 2024 at 20:59, Heime wrote: > In elisp one uses > > ;;; Level 1 Heading > ;;;; Level 2 Heading > ;;;;; Level 3 Heading > > What does one use for the aforementioned major-modes to do the same ? That would be a decision for the project maintainer to make. If you are lucky to work on a project in C or C++ whose code style is tailored for Emacs users. In C++ or C that allows line comments //, I would use ///, //// and further. If the project reserves /// for documentation comments, then start with //// for headings. In C that insists on /* */ comments only, /** would be for doc comments and /*** and further free for headings. In HTML, I=E2=80=99d be tempted to use natural headings

and so on= . These are only examples; other people might choose different heading styles. Like they might say =E2=80=9Cour dominant IDE uses #pragma region/#pragma endregion for code folding=E2=80=9D.