Create a line break in text mode code | Community
Skip to main content
Level 2
April 5, 2023
Solved

Create a line break in text mode code

  • April 5, 2023
  • 2 replies
  • 2340 views

Does anyone know how to create formatting within the text mode code itself (not its output), so it is easier to read/edit?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by KellieGardner

I just reread your post and realized what you were asking. (input vs output) I usually create all of my text mode code in notepad or word vs in Workfront and then I copy and paste it in. 

2 replies

Level 4
April 5, 2023

We use bold on a few items like the project name in the sample below:

 

column.1.displayname=Project Details
column.1.sharecol=true
column.1.textmode=true
column.1.usewidths=true
column.1.value=<b><strong>Name: &nbsp;&nbsp;</strong>
column.1.valueformat=HTML
column.1.width=150
column.2.descriptionkey=name
column.2.linkedname=direct
column.2.listsort=string(name)
column.2.namekey=name
column.2.querysort=name
column.2.section=0
column.2.sharecol=true
column.2.shortview=false
column.2.textmode=true
column.2.valuefield=name
column.2.valueformat=HTML
column.2.width=150
column.3.sharecol=true
column.3.textmode=true
column.3.value=</b><br><strong>Project Manager:&nbsp;&nbsp;</strong>
column.3.valueformat=HTML
column.3.width=150
column.4.descriptionkey=owner
column.4.displayname=Project Manager
column.4.link.linkproperty.0.name=ID
column.4.link.linkproperty.0.valuefield=owner:ID
column.4.link.linkproperty.0.valueformat=int
column.4.link.lookup=link.view
column.4.link.valuefield=owner:objCode
column.4.link.valueformat=val
column.4.linkedname=owner
column.4.listsort=nested(owner).string(name)
column.4.namekey=owner
column.4.querysort=owner:name
column.4.section=0
column.4.sharecol=true
column.4.shortview=false
column.4.textmode=true
column.4.usewidths=true
column.4.valuefield=owner:name
column.4.valueformat=HTML
column.4.width=150
column.5.sharecol=true
column.5.textmode=true
column.5.value=<br><strong>Description:&nbsp;&nbsp;</strong>
column.5.valueformat=HTML
column.5.width=150
column.6.linkedname=direct
column.6.namekey=description
column.6.querysort=description
column.6.textmode=true
column.6.valuefield=description
column.6.valueformat=HTML

Hope that helps give you some ideas! 

RandyRoberts
Community Advisor
Community Advisor
April 5, 2023

Any basic html tags will work. I use <hr> to separate lists and it makes things much clearer than <p> or <div>, especially when you have multi-line entries.

KellieGardner
Community Advisor
KellieGardnerCommunity AdvisorAccepted solution
Community Advisor
April 5, 2023

I just reread your post and realized what you were asking. (input vs output) I usually create all of my text mode code in notepad or word vs in Workfront and then I copy and paste it in. 

RandyRoberts
Community Advisor
Community Advisor
April 5, 2023

Oh man, I made the same mistake!

 

Yea, I'm on a Mac so I use Sublime Text, COTeditor and BBedit. They all have syntax colouring (set it to javascript).

JessicaEaAuthor
Level 2
April 5, 2023

Thanks Randy, I'll give that a go.