Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
rbartley
Specialist II
Specialist II

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
Mattias_Malré
Former Employee
Former Employee

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 @Anonymous to jump in. 

All the best

-Mattias

I accept cookies.

View solution in original post

rbartley
Specialist II
Specialist II
Author

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

View solution in original post

2 Replies
Mattias_Malré
Former Employee
Former Employee

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 @Anonymous to jump in. 

All the best

-Mattias

I accept cookies.
rbartley
Specialist II
Specialist II
Author

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