discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>
To: discuss@mdocml.bsd.lv
Subject: Re: Mandoc HTML Output - Recognizing Sections
Date: Sat, 7 May 2016 02:15:27 +0530	[thread overview]
Message-ID: <CAHwRYJnj9ywJAO1QO2LH5Di6ck4Uz7etfq9bCgaEt3+ghpbuFA@mail.gmail.com> (raw)
In-Reply-To: <23922.1462562312@CATHET.us>

Hi Anthony,

On Sat, May 7, 2016 at 12:48 AM, Anthony J. Bentley <anthony@anjbe.name> wrote:
> Hi Abhinav,
>
> Abhinav Upadhyay writes:
>> I was thinking it would be nice if the HTML output from mandoc also
>> added the section name to the class of the section divs. For example
>> <div class="section name">.
>>
>> It would allow section specific styling, for example the EXAMPLES
>> sections could be styled better, maybe with syntax highlighting etc.
>> :)
>
> Seems like you could do the same with ~ in CSS. See CSS Selectors Level 3
> section 8.3.2 "General sibling combinator":
>
> https://www.w3.org/TR/css3-selectors/#general-sibling-combinators
>
> For example, "h1#EXAMPLES ~ pre.display { ... }"

Thanks, I didn't know of that. I tried it, and it works for my
purposes. However, the ids of the h1 tags seems to be some kind of
encoding or hash (I didn't see the code to see how is it generated).
As long as that id is consistent, I guess the solution you suggested
will work for me.

Thanks again.

--
Abhinav
--
 To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv

  reply	other threads:[~2016-05-06 20:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-06 17:58 Abhinav Upadhyay
2016-05-06 19:18 ` Anthony J. Bentley
2016-05-06 20:45   ` Abhinav Upadhyay [this message]
2016-05-06 20:54     ` Anthony J. Bentley
2016-05-06 21:05       ` Abhinav Upadhyay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHwRYJnj9ywJAO1QO2LH5Di6ck4Uz7etfq9bCgaEt3+ghpbuFA@mail.gmail.com \
    --to=er.abhinav.upadhyay@gmail.com \
    --cc=discuss@mdocml.bsd.lv \
    --subject='Re: Mandoc HTML Output - Recognizing Sections' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).