From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: outline-minor-mode heading levels in C, C++, and html Date: Wed, 14 Aug 2024 16:55:40 +0000 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="13314"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joel Reicher , Heime via Users list for the GNU Emacs text editor To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 14 18:56: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 1seHIT-0003Gb-EW for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 14 Aug 2024 18:56:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1seHHt-0005Rh-Sx; Wed, 14 Aug 2024 12:55:53 -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 1seHHr-0005Q9-42 for help-gnu-emacs@gnu.org; Wed, 14 Aug 2024 12:55:51 -0400 Original-Received: from mail-4325.protonmail.ch ([185.70.43.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1seHHm-0004Ba-HK for help-gnu-emacs@gnu.org; Wed, 14 Aug 2024 12:55:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1723654543; x=1723913743; bh=etFCS/JuosBcmfqUgLM3WbKApheXqoYA9isU4yXlx/s=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=pRcbJQaWqhjimVGPHP6FN0ngLB7xmckLeh+WulNQYf4dgqOXy9rBLmjONF4Eu9ntY ZlV8/dmipjJrJx6lCIXAXYn214zr/xqJ3+KFmwqcKAXYEWPlKnSySCZDtjBNFohYYy WKLm9+2pJkUuMPniZI1rzd5g6J1SBvKaw6Av0FgB2ur9RWVae0Zweeg+UpE/YiGDF8 NIL3aqWElEr9Hma6sM88xFwKUS/Tt0g/AU1FtNtg58mKeq3iIn88phSR8QeY+ObRlQ Pg7vz5MTYXSM6X97eTFIbJRRU4WcJBgCQBRDk7mf5lyj0Xin2lTvjg3mzAisFIhg5p g2+n2IzggpdHA== In-Reply-To: Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 97b2bad772acaea9557350a593590646da637b26 Received-SPF: pass client-ip=185.70.43.25; envelope-from=heimeborgia@protonmail.com; helo=mail-4325.protonmail.ch 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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:147680 Archived-At: On Thursday, August 15th, 2024 at 4:45 AM, Yuri Khan wrote: > On Wed, 14 Aug 2024 at 20:59, Heime heimeborgia@protonmail.com wrote: >=20 > > In elisp one uses > >=20 > > ;;; Level 1 Heading > > ;;;; Level 2 Heading > > ;;;;; Level 3 Heading > >=20 > > What does one use for the aforementioned major-modes to do the same ? >=20 >=20 > 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. >=20 > 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. >=20 > In C that insists on /* / comments only, /* would be for doc > comments and /*** and further free for headings. >=20 > In HTML, I=E2=80=99d be tempted to use natural headings

and so = on. >=20 >=20 > 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. What does emacs outline-minor-mode automatically apply for declaring headin= gs in C++, C and Html modes ?