elective-stereophonic
elective-stereophonic
Fixed width text columns - how to?
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client: Nxt 1.11.15

Author Topic: Fixed width text columns - how to?  (Read 2744 times)

altsheets

  • Full Member
  • ***
  • Karma: +31/-1
  • Offline Offline
  • Posts: 232
  • check out #AAssetNXT #AltFolio and #AssetGraphs
    • View Profile
    • AssetGraphs-v2 live examples
Fixed width text columns - how to?
« on: August 08, 2015, 03:53:52 pm »

Fixed width text columns - how to?

I am writing a longer text as the intro to my new project assetgraphs.

I have been trying out several suggestions from this search
https://www.google.de/search?q=simple+machines+forum+table+fixed+width

but some options of the SimpleMachinesForum seem to be switched off in nxtforum, is that right?

I was thinking about e.g.

Code: [Select]
[table width=600][tr][td]
my text
[/td][/tr][/table]

or

Code: [Select]
[table][tr][td width=600]
my text
[/td][/tr][/table]

or even

Code: [Select]
[html]
<table width=600><tr><td>
my text
</td></tr></table>
[/html]

The goal is that I do not have to manually edit all line endings to
end up as readable 50-100 characters (like here in these 4 lines)
but simply type everything into such a table, and it gets formatted
automatically.

Any idea appreciated!
Or can you simply enable the "width=" option in the "table" tag? Thx.

Logged
AltFolio | Newbium DataSite | AAssetNXT & -HZ | AssetGraphs | ABEE | Advice | assetparser.py & shareholders.py | bamm.py | PeerCrawler | Github e.g. ChainCountDown, ethjsre | ... much more

VanBreuk

  • Administrator
  • Hero Member
  • *****
  • Karma: +361/-19
  • Offline Offline
  • Posts: 2772
    • View Profile
Re: Fixed width text columns - how to?
« Reply #1 on: August 09, 2015, 12:41:28 am »

Hello altsheets,

some options of the SimpleMachinesForum seem to be switched off in nxtforum, is that right?

Which options do you refer to? If you mean the fact basic html in posts is disabled, this is common practice in SMF forums due to the risk of exploits.

The goal is that I do not have to manually edit all line endings to
end up as readable 50-100 characters (like here in these 4 lines)
but simply type everything into such a table, and it gets formatted
automatically.
Any idea appreciated!
Or can you simply enable the "width=" option in the "table" tag? Thx.

Adding style options to BBcode tags is sadly not a trivial thing to do in SMF, so we cannot simply tick a box to make this happen, but there should be a forum modification to achieve this, hopefully compatible with existing customizations in NxtForum. Let me take a look.

In the meantime, here's a dirty workaround that might work depending on what do you intend to do exactly. The use of [tt] or [pre] for preformatted code is of course optional but allows to see the results better, and in the second and fourth cells there is an arbitrary number of spaces.

Code: [Select]
[table]
[tr]
[td][tt]Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.[/tt][/td]
[td][tt]                                                                              [/tt][/td]
[td][tt]Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.[/tt][/td]
[td][tt]                                                                              [/tt][/td]
[/tr]
[/table]

Which would show as

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.                                                                              Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.                                                                             
Logged
GPG Fingerprint: B020 D1C1 F289 3B2C 3577  9EAD 455D D175 5913 C7F1

altsheets

  • Full Member
  • ***
  • Karma: +31/-1
  • Offline Offline
  • Posts: 232
  • check out #AAssetNXT #AltFolio and #AssetGraphs
    • View Profile
    • AssetGraphs-v2 live examples
Re: Fixed width text columns - how to?
« Reply #2 on: August 13, 2015, 02:49:38 am »

Cool!

_____________________________________________________________________________________________________________________

Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice. Wow, that looks really nice.


Thanks a million for that trick. Thanks a million for that trick. Thanks a million for that trick. Thanks a million for that trick. Thanks a million for that trick. Thanks a million for that trick. Thanks a million for that trick. Thanks a million for that trick. Thanks a million for that trick. Thanks a million for that trick. Thanks a million for that trick. Thanks a million for that trick. Thanks a million for that trick. Thanks a million for that trick. Thanks a million for that trick.


... but it seems to work best if both columns have ~equal text amounts.
Look at my code - how could I get the color of the background?





depending on what do you intend to do exactly
... for my problem, in the end I decided to let the user do the formatting - with his keyboard:


... An unforgettable weekend: I survived my 1st hackathon :-)

[Tons of text following, and not sorry for that. As short as possible, but as long as necessary. Until this is solved, I suggest you press 'CTRL +' a few times. Shorter rows are easier for your brain.]
...

 :)
Logged
AltFolio | Newbium DataSite | AAssetNXT & -HZ | AssetGraphs | ABEE | Advice | assetparser.py & shareholders.py | bamm.py | PeerCrawler | Github e.g. ChainCountDown, ethjsre | ... much more
 

elective-stereophonic
elective-stereophonic
assembly
assembly