I noticed @AlfredBaldenweck used an interesting technique where a lengthy Python script was collapsed into a "Spoiler."
Source: Improved documentation for updateConnectionProperties(): workspace_factory
The user can choose to expand or collapse the spoiler to show the Python script as needed.
That seems very useful when it comes to avoiding clutter in posts. Otherwise, lengthy posts and replies are cumbersome to navigate.
Idea:
Rather than using the default "Spoiler" text, could we customize the text with a more meaningful title, such as the Python script's name? I.e. MyScript.py.
Even if we had to make that change in the HTML editor, that would still be better than the default "Spoiler" text.
For example, if I copy/paste a spoiler into a post, then HTML mode looks like this:
<div class="lia-spoiler-container"><a class="lia-spoiler-link" href="https://community.
esri.com/t5/arcgis-pro-ideas/improved-documentation-for/idc-p/1278285/highlight/true#"
rel="nofollow noopener noreferrer">Spoiler</a></div>
So it seems like it should be possible to replace Spoiler with custom text. But I'm not good enough with HTML to get that working; everything I try gets automatically stripped out when I hit save/post.
Related: Support additional HTML tags in community posts