Expand my Community achievements bar.

Do you have questions about the migration to Adobe Business Platform? Come join our upcoming coffee break and ask away!
SOLVED

Create a line break in text mode code

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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. 




View solution in original post

8 Replies

Avatar

Level 5

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

RyanKirk_0-1680703947488.png

 

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! 

Avatar

Level 10

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.

Avatar

Correct answer by
Community Advisor

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. 




Avatar

Level 10

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).

Avatar

Level 10

Sublime is free but it asks you to buy it every so often. Sublime is Windows and Mac and is the most sophisticated and extensible of the 3.

COTeditor on the Mac is free and lightweight and really pretty to look at.

BBedit is Mac only as well and is not free. Text Wrangler, it's younger sibling is free. They are really good for text manipulation, REGEX filtering, search and replace, stuff like that.

I use all 3 for different situations but they make text mode coding way easier.

Avatar

Level 10

It should also be noted that when you paste your code into Workfront, it often re-sorts the lines. Another reason to keep a code snippet repository in a document that is sorted the way you want it.