Redred622 Apr 10, 2024 @ 10:18am
How Does </> Code Work In the Notes Thing?
I’m trying out the Notes thing in the steam overlay and I’m not sure what the “code” formatting option is about.

I thought I might’ve been able to use it to colour text with html stuff, but it doesn’t seem to have any effect.
(Specifically I did
<p style=“color:red;”>g</p>
)
Am I doing something wrong, or does the code option just make the text smaller and change the font?

The content of the “formatting help” thing is making me think it’s probably the latter. :/

Edit: I see after posting that the [c○de] markdown(?) from the “formatting help” makes a code block, which is different from what the “code” option in the notes thing did. I want to be clear that I’m not asking about code blocks, I already know what those do, and code block appears as a separate formatting option from the “code” option I’m asking about.
Last edited by Redred622; Apr 10, 2024 @ 10:41am
Originally posted by nullable:
Originally posted by Redred622:
Originally posted by Ettanin:
The code block is there to provide an area for fixed-width space preserving text, to basically provide an area for displaying source code.

It is not there to format messages in HTML, else it would provide a tool for scammers or to spread malware.
Thanks for the detailed answer Ettanin, I appreciate it!
I think you’ve misunderstood me though, I’m talking about the notes thing in Steam’s in-game overlay, not the forums or messaging.
I don’t think that the security issues you mentioned would apply in the notes thing, but I could easily be wrong about that.


Code block is a block level formatting, like the headers and paragraphs are.

Code is an inline level formatting, like bold/italics/strike through are.

It's not uncommon, github wikis have similar formatting options. There's a format for code blocks, and a format for inline code. They have different uses.

In either case the purpose of the code styling options aren't to let users write html/css in their notes. It just styles text a certain way to make it clear it's different from normal text blocks.

In the case of github I often use the inline code styling to highlight database names, table names, field names, class names, variables names or other things that are directly related to code being discussed in text (paragraphs sentences). It's not unlike bolding keywords in a block of text. But regardless it's just styling.
< >
Showing 1-3 of 3 comments
Ettanin Apr 10, 2024 @ 10:21am 
The code block is there to provide an area for fixed-width space preserving text, to basically provide an area for displaying source code.

It is not there to format messages in HTML, else it would provide a tool for scammers or to spread malware.
Redred622 Apr 10, 2024 @ 10:30am 
Originally posted by Ettanin:
The code block is there to provide an area for fixed-width space preserving text, to basically provide an area for displaying source code.

It is not there to format messages in HTML, else it would provide a tool for scammers or to spread malware.
Thanks for the detailed answer Ettanin, I appreciate it!
I think you’ve misunderstood me though, I’m talking about the notes thing in Steam’s in-game overlay, not the forums or messaging.
I don’t think that the security issues you mentioned would apply in the notes thing, but I could easily be wrong about that.
Last edited by Redred622; Apr 10, 2024 @ 10:30am
The author of this thread has indicated that this post answers the original topic.
nullable Apr 10, 2024 @ 11:25am 
Originally posted by Redred622:
Originally posted by Ettanin:
The code block is there to provide an area for fixed-width space preserving text, to basically provide an area for displaying source code.

It is not there to format messages in HTML, else it would provide a tool for scammers or to spread malware.
Thanks for the detailed answer Ettanin, I appreciate it!
I think you’ve misunderstood me though, I’m talking about the notes thing in Steam’s in-game overlay, not the forums or messaging.
I don’t think that the security issues you mentioned would apply in the notes thing, but I could easily be wrong about that.


Code block is a block level formatting, like the headers and paragraphs are.

Code is an inline level formatting, like bold/italics/strike through are.

It's not uncommon, github wikis have similar formatting options. There's a format for code blocks, and a format for inline code. They have different uses.

In either case the purpose of the code styling options aren't to let users write html/css in their notes. It just styles text a certain way to make it clear it's different from normal text blocks.

In the case of github I often use the inline code styling to highlight database names, table names, field names, class names, variables names or other things that are directly related to code being discussed in text (paragraphs sentences). It's not unlike bolding keywords in a block of text. But regardless it's just styling.
Last edited by nullable; Apr 10, 2024 @ 11:28am
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Apr 10, 2024 @ 10:18am
Posts: 3