Something you might consider, esp. if you want to keep things simple, is custom
tags in your HTML -- simple HTML + CSS. There are ways of working with it that
are pretty tight and minimal.
For instance
<dlg>"Hello everyone,"</dlg> <blu>John</blu> exclaimed. He looked at the
crowed. <dlg>"Let's begin this conversation with a fun story."</dlg >
<dlg> and <blu> are not actual recognized HTML tags, so they get interpreted as
inline objects (like a <span>)
In major broswers they are responsive to CSS, for instance
blu {color:blue;}
dlg {color:#aaa;}
The shorter your custom tag names, the cleaner your document. Obviously be
careful not to accidentally use existing short HTML tags (e.g. <b> <a> <li>)
(actually, you can even use them, so long as you use CSS to define out their
default properties)
This approach can allow you to get pretty sophisticated quickly while keeping
your document clean.
Also, you might consider Markdown <https://www.markdownguide.org/>. There's a
whole world of developers out there whose goal is to simply HTML (the idea
behind "Markdown" is to make "Markup" more abbreviated)
> On Dec 23, 2021, at 9:30 AM, Shawn Liebling <[email protected]> wrote:
>
> Hi people! I'm not super technical, so simple explanations would be great.
>
> So, I am working on a huge project where it would really help to have certain
> elements color coded. Here is an example (numbers are not accurate):
>
> [John Smith] <3435,3549>"Hello everyone," John exclaimed. He looked at the
> crowd. <3685,3798>"Let's begin this conversation with a fun story."
>
> What I want is for the attribution ([John Smith]) to be a blue color, the
> number codes (<3435,3549>) to be very light grey so they don't distract me,
> the dialogue (text inside quote marks) to be brown, and the non-dialogue text
> to be black.
>
> I searched this group a bit and found a couple conversations that as asking a
> similar question, but there aren't any answers that work for what I'm wanting
> to do.
>
> So how might I go about this? I'm ok with adding a little code to make it
> work, but ideally I would be able to have something set up where anything
> within certain confines are color coded, like anything inside <> is light
> grey, etc.
>
> I am currently getting around this by having my file be in HTML and using the
> elements already defined, but it looks messy and I don't know what all the
> syntax means. Here is an example screenshot of my current workaround:
>
> <Screen_Shot_2021-12-23_at_8.55.16_AM.png>
>
> With that in mind, another question is; is there a definition somewhere of
> what items in the text color prefs are exactly? Like in the HTML section,
> what is an "anchor tag"? And in Markdown section, what is a "List item
> marker"?, etc.
>
> I figure if I can't easily set up custom defined coloring, then maybe I can
> save my files in another format and use the items that are already defined,
> especially if the code has minimal extra junk in it. For example, the <!--
> --> comment is a little messy, so having something like <! > would be easier
> for me to deal with.
>
> I hope that all made sense. I'm still a bit of a BBEdit novice.
>
> Thanks much for any help y'all can provide!
> -Shawn
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature
> request or need technical support, please email "[email protected]"
> rather than posting here. Follow @bbedit on Twitter:
> <https://twitter.com/bbedit <https://twitter.com/bbedit>>
> ---
> You received this message because you are subscribed to the Google Groups
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bbedit/0d24f3a2-c774-4936-bec5-2ba3b4a8d6bfn%40googlegroups.com
>
> <https://groups.google.com/d/msgid/bbedit/0d24f3a2-c774-4936-bec5-2ba3b4a8d6bfn%40googlegroups.com?utm_medium=email&utm_source=footer>.
> <Screen_Shot_2021-12-23_at_8.55.16_AM.png>
--
This is the BBEdit Talk public discussion group. If you have a feature request
or need technical support, please email "[email protected]" rather than
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/0E21BF39-17C7-441C-B32A-621FE86FCC55%40gmail.com.