I think my initial explanation of the problem was a bit confusing so I’m going to try again.
I want to take notes on html
But the html tags are getting converted to look like they display on a webpage.
<p>content within these tags gets converted<p>
to sometimes display nothing.
When taking notes on javascript I will surround my code examples with the “```” but now I am no longer able to highlight individual words without the words I want highlighted looking like ==this==
Problem #
I surround my html with ``` to avoid markup but now no longer have highlighting
Problem #2
Javascript doesnt interact with html automatic conversion but will have unnecessary highlighting because of the frequent use of ==
Conclusion
Taking notes on code in obsidian inherently collides with the many features that obsidian provides since these features take advantage of the html coding language. Which inevitably collides syntactically with any coding language you could attempt to take detailed notes on. ESPECIALLY if those notes are on the very language that provides these features.
The solution to this problem is way more complicated than I anticipated for as I said in my first post, I want to bake my cake and eat it to.
For example
I have moved on to taking notes on CSS but this still applies
I want to highlight the word “style” in the following line of code
<p style='color:blue;'>Hello World!<p>
but adding the equals signs that trigger a highlight looks like this
<p ==style==='color:blue;'>Hello World!<p>
which is not what I want
But taking it out of the code block coverts it to just Hello World! in blue text
Mind you Im doing this all in a Canvas which will convert my boxes to reading view no matter what
I have tried plugins for highlighting and they have the same problem of rendering the tag for highlighting in a code block
I have tried the code styler plugin recommended by @holroy but as stated that will only highlight entire lines and not individual words
I have tried canvas plugins but none of them state they are able to disable reading mode for canvas nodes.
No matter what I keep running into the problem of either
One
The code block surrounded by ``` containing an unwanted highlight tag
Or two
The code block interacting with the built in html conversion in an unwanted way
I have either one or both of these problems at the same time depending on the particular line of code I want to take notes on.
What I want is for “style” in the line of code above to be highlight without any of the text being colored and without a highlight tag (==) being visible.
I also want the highlight tag to not be visible on my notes on html, which takes advantage of the html automatic conversion, without having any other html tags automatically being converted to a webpage.
This in my mind can only be achieved with a completely custom made webpage.
Or by disabling the automatic markup entirely (WHICH I AM NOT ABLE TO DO FOR SOME REASON AGH) while still being able to highlight using a different means or functionality. While being able to do so in a canvas.
I think this post now that I have been able to mule over this for a while should be in feature requests as I am asking for something that I am pretty sure is not accommodated for yet.
The features that I would request are the ability to disable ALL html conversion
And an entirely new way to highlight that doesn’t need CSS or html
Both of these are required if I am able to preserve the syntax of the languages I want to take notes on without having to make significant compromises to the way I highlight (only entire lines) or my ability to draw visual semantic relationships on a canvas as it pertains to particular words or phrases within specific section of single lines.
I have a feeling not everyone takes notes on code to this level of detail XD. Am I the only one?
I feel there is a value to outlining every single aspect of particular blocks or lines of code as this demands the deepest and most syntactically sound understanding which only improves your ability to read code and write code.