The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to be easy to depart code and other text markup

JiaYu Zhang
July 12, 2017

the following markdown code:

### title

#### subtitle
+ list item A
+ list item B
+ list item C

this is some text here

```javascript
//this is some javascript code here
function test(){
	console.log('test javascript code')
}

```

this is some other text 

rendered as 

 

title

subtitle

  • list item A
  • list item B
  • list item C

this is some text here

//this is some javascript code here
function test(){
	console.log('test javascript code')
}


this is some other text

 

and it is not easy to tell the texts from the code

 

1 comment

Comments for this post are closed

Community moderators have prevented the ability to post new comments.

Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 12, 2017

The code is rendered in a code tag, so you could insert some CSS in the page like 

code {
    background: #f0f0f0;
}

that would make it easier to identify the code in the page. This will only highlight the text, not the whole block, but better than nothing ;)

JiaYu Zhang
July 12, 2017

yeah,I mean that does it would be done with this plugin?or some code with the code of this here? 

I found that there is some static resource in this plugin source code,but empty and not referenced?

Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 12, 2017

Well, you should keep using the plugin, but you don't have to add the code to the plugin itself. There should be a section for inputting Global CSS:

https://confluence.atlassian.com/doc/_editing-global-css-321853510.html

You should be able to insert the code above and it shiuld work.

JiaYu Zhang
July 13, 2017

that's helpful, I will give it a try, thanks a lot

TAGS
AUG Leaders

Atlassian Community Events