Read before updating: How to Update Kunena Templates - More detail

Code Formatting?

R Topic Author
New Member New Member
  • Posts: 12
  • Thanks: 1

Code Formatting?

3 years 2 months ago - 3 years 2 months ago
#16408
I just ordered NTS Kay and installed it in our test environment.
We have a website that is for software developers.
For us, it is VERY important that source code is properly formatted on the website.

I tested the
Code:
sometext
option, and I am disappointed with how it looks afterward.

Source code should be formatted using the <pre> tag and in a fixed font.
NTS Kay displays the code formatted with the default font.
 
Also, when I open a message to edit again then the code uses a fixed font, but the [code] tags are not visible anymore, until you select [Source].

How do I adjust NTS Kay (probably with a style override) to show code the proper way.

I have also disabled "karma" in the Kunena settings, but still I see for some users the Karma field in the profile on top of the message.
Why is that ?

I would also like to suppress fields like Gender and Birthdate in the header. Is there an easy way to do this?
I checked the html but you do not have a separate style for these fields, so I cannot suppress that with a style.
Finally, I tried to insert the attached image in this message but that does not work...


Robert

Attachments:

Last edit: 3 years 2 months ago by robert.

Please Log in or Create an account to join the conversation.

ntstore's Avatar
Administrator Administrator
  • Posts: 1213
  • Thanks: 240

Re: Code Formatting?

3 years 2 months ago
#16409
Hi,
Thank you very much about bug report. We improved style for code format and updated to the download package. Please download and update to your test environment.

We are checking the karma issue and update to package soon.

Best regards,
Hung Pham
Email: 9themestore@gmail.com
Twitter: @9themestore

Please Log in or Create an account to join the conversation.

R Topic Author
New Member New Member
  • Posts: 12
  • Thanks: 1

Re: Code Formatting?

3 years 2 months ago
#16410
Thanks for the fix.
This is better, but now you have added line numbers, that I do not need, and that also are not shown correctly (see attachment). The first line has no number, and the second line starts with 1.


How can adjust the colors?

Robert

Attachments:

Please Log in or Create an account to join the conversation.

R Topic Author
New Member New Member
  • Posts: 12
  • Thanks: 1

Re: Code Formatting?

3 years 2 months ago
#16411
Forget my question about the colors. I have adjusted that in custom.css, and I have also made the numbers invisible:
Code:
.bbcode_code_body { background-color: beige; color: black; } .bbcode_code::before { display:none; }


Robert

Please Log in or Create an account to join the conversation.

Time to create page: 0.236 seconds