It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Why do scrollbars always appear in the Syntax Highlighted sections ?

ovidiu.veliscu Jul 29, 2012

I have installed JIRA 5.0.3 and I added the JIRA Syntax Highlighter plugin latest version 1.5.1. I disabled {code} and {noformat} following the installation guide.

I tried adding {code:sql} sections and as you can see in the screenshot below, it always has vertical scroll bars displayed (and the last line is usually slightly cut by a couple of pixels). I tried with other sections such as {code:java} but the same situation occurred.

Can you please tell me how can I correct the display issue ?

3 answers

1 accepted

0 votes
Answer accepted
Holger Schimanski Mar 21, 2013

Sorry, you were talking about the vertical scrollbars.

Don't see any idea how to fix...

Kind regards
Holger

ovidiu.veliscu Mar 21, 2013

the issue was zoom related. The zoom was set to 110% instead of 100% and therefore the lines appeared.

Holger Schimanski Oct 02, 2014

Meanwhile I have released JIRA Syntax Highlighter version 2.1.1 which has a fix for vertical scrollbars.

0 votes
Radu Dumitriu Jul 29, 2012

Add a small bug here: https://bitbucket.org/hski/syntaxplugin-public/issues?status=new&status=open or fix it. There might be a problem when calculating the height of the region.

https://bitbucket.org/hski/syntaxplugin-public/src/8bf2e974bfd0/src/main/resources/scripts/shCore.js

Edit: or with the style. pad it more ...

0 votes
Holger Schimanski Nov 08, 2012

The plugin is not doing any line breaks. And your lines 2 and 3 are quite long, so the scrollbar is added. Just add manual line breaks.

Kind regards

Holger

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Marketplace Apps & Integrations

Demo Den Ep. 4: Continuous Integration with CircleCI & Jira Software

Get ready! Demo Den Episode 4 is coming your way on Tuesday, May 28, 2018 with a Continuous Integration and Delivery special demo. CircleCI Director of Solutions Engineering, Eddie Webb will show us ...

67 views 0 2
Join discussion

Community Events

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

Events near you