This question is in reference to Atlassian Documentation: Code Block Macro
I have some XML that I want to show in a code block. An element in this XML happens to have an attribute that is a URL. For example:
<add key="SomeUrl" value="" />
I don't want the URL to be clickable. Any way to do this?
@Peter Milakovich automatic links in code is also extremely undesirable at my company too, especially when documenting our api. There are a number of links that trigger actions such as tracking counts etc and it is a problem.
This should be controllable at least by adding a css style to each page or code block.
This code block behavior creates a catch-22 for code snippets with URLs. You can only get Confluence's "double-click to select code" behavior with a code block macro, not with No Format. But you can only prevent these automatic links with No Format, not Code Block. If you have a Code Block with a code snippet including a long URL, there will be a large part of the area where the user sees a "double-click to select code" tooltip, but the user's click will navigate the browser away from the confluence page, because of the automatic link.
Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond. A long time favorite, Team Cale...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events