[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: outline-minor-mode heading levels in C, C++, and html
From: |
Yuri Khan |
Subject: |
Re: outline-minor-mode heading levels in C, C++, and html |
Date: |
Wed, 14 Aug 2024 23:45:45 +0700 |
On Wed, 14 Aug 2024 at 20:59, Heime <heimeborgia@protonmail.com> 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’d be tempted to use natural headings <h1> <h2> and so on.
These are only examples; other people might choose different heading
styles. Like they might say “our dominant IDE uses #pragma
region/#pragma endregion for code folding”.
- outline-minor-mode heading levels in C, C++, and html, Heime, 2024/08/13
- Re: outline-minor-mode heading levels in C, C++, and html, Joel Reicher, 2024/08/14
- Re: outline-minor-mode heading levels in C, C++, and html, Heime, 2024/08/14
- Re: outline-minor-mode heading levels in C, C++, and html,
Yuri Khan <=
- Re: outline-minor-mode heading levels in C, C++, and html, Heime, 2024/08/14
- Re: outline-minor-mode heading levels in C, C++, and html, Yuri Khan, 2024/08/14
- Re: outline-minor-mode heading levels in C, C++, and html, Heime, 2024/08/14
- Re: outline-minor-mode heading levels in C, C++, and html, Joel Reicher, 2024/08/15
- Re: outline-minor-mode heading levels in C, C++, and html, Joel Reicher, 2024/08/15
- Re: outline-minor-mode heading levels in C, C++, and html, Heime, 2024/08/15
- Re: outline-minor-mode heading levels in C, C++, and html, Joel Reicher, 2024/08/15
- Re: outline-minor-mode heading levels in C, C++, and html, Heime, 2024/08/15
- Re: outline-minor-mode heading levels in C, C++, and html, Stefan Monnier, 2024/08/16
- Re: outline-minor-mode heading levels in C, C++, and html, Joel Reicher, 2024/08/17