Qlik Community

Community Corner

Discussion board for questions about the Qlik Community, its features, sharing information, general discussions and even some fun. This is for both new and longtime community members. Everyone is welcome!

Highlighted
rbartley
Valued Contributor

New Community site - text and code formatting lost?

Hi everyone,

 

I've just started to use the new Qlik Community site and can't see a way of replicating the code formatting  that was on the old site.  It used to be possible to highlight a section as javascript, for example, so that the code would stand out and be correctly indented, but I can't see any similar options and I can't tab to indent.  This makes it difficult to post questions that include code examples.  Am I missing something?  I see there's an HTML tab, but surely we don't have to covert the comments to html beforehand.

2 Solutions

Accepted Solutions
Employee
Employee

Re: New Community site - text and code formatting lost?

Hello @rbartley

Not sure I can answer this, but there is a small icon when posting or replying to Questions that lets you post code to the text, see below. 

code.jpg

That would make it look like this: 

if(qData && qData.qMatrix) {
		$.each(qData.qMatrix, function(key, row) {
			if(row.length > 1) {
				//dimension is first, measure second
				var dim = row[0], meas = row[1];
				if(dim.qIsOtherCell) {
					dim.qText = layout.qHyperCube.qDimensionInfo[0].othersLabel;
				}
				html += '<div title="' + dim.qText + ':' + meas.qText + '"';

If that does not answer your question I'm afraid we'll have to wait for the much more tech-savvy @Jeremy_Latimer to jump in. 

All the best

-Mattias

I accept cookies.
rbartley
Valued Contributor

Re: New Community site - text and code formatting lost?

HI Mattias,

 

While not being quite as advanced as the previous text editor, it allows me to indent and it stands out from the pure text, so that's good enough.

 

Thanks for your help.

 

Richard

2 Replies
Employee
Employee

Re: New Community site - text and code formatting lost?

Hello @rbartley

Not sure I can answer this, but there is a small icon when posting or replying to Questions that lets you post code to the text, see below. 

code.jpg

That would make it look like this: 

if(qData && qData.qMatrix) {
		$.each(qData.qMatrix, function(key, row) {
			if(row.length > 1) {
				//dimension is first, measure second
				var dim = row[0], meas = row[1];
				if(dim.qIsOtherCell) {
					dim.qText = layout.qHyperCube.qDimensionInfo[0].othersLabel;
				}
				html += '<div title="' + dim.qText + ':' + meas.qText + '"';

If that does not answer your question I'm afraid we'll have to wait for the much more tech-savvy @Jeremy_Latimer to jump in. 

All the best

-Mattias

I accept cookies.
rbartley
Valued Contributor

Re: New Community site - text and code formatting lost?

HI Mattias,

 

While not being quite as advanced as the previous text editor, it allows me to indent and it stands out from the pure text, so that's good enough.

 

Thanks for your help.

 

Richard