Author Topic: [Solved]Incorrect formatting in specific text file  (Read 357 times)

bogedo

  • Community Member
  • Posts: 27
  • Hero Points: 0
[Solved]Incorrect formatting in specific text file
« on: March 15, 2021, 08:44:59 pm »
i've attached a text file that renders correctly in Notepad++ but is not in SlickEdit. screenshots:

Notepad++



SlickEdit



why is this the case and is it something that a user can sort out by themselves or is it something that needs to be added by the developers ?
« Last Edit: March 15, 2021, 10:01:04 pm by bogedo »

hs2

  • Senior Community Member
  • Posts: 2754
  • Hero Points: 291
Re: Incorrect formatting in specific text file
« Reply #1 on: March 15, 2021, 08:51:30 pm »
Does it contain TABs and the TAB spacing is different ?

bogedo

  • Community Member
  • Posts: 27
  • Hero Points: 0
Re: Incorrect formatting in specific text file
« Reply #2 on: March 15, 2021, 09:02:14 pm »
appreciate you getting back to me quickly. i've attached the text file to the original post, please have a look if you do not mind.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2648
  • Hero Points: 141
Re: Incorrect formatting in specific text file
« Reply #3 on: March 15, 2021, 09:12:09 pm »
It looks like if you go to Document>Tabs and type in "1 5" (don't actually quote it), that should fix it up.

The default for tab setting for Plain Text is +8.

bogedo

  • Community Member
  • Posts: 27
  • Hero Points: 0
Re: Incorrect formatting in specific text file
« Reply #4 on: March 15, 2021, 09:40:37 pm »
nice! Thank you it displays correctly now and it seems hs2 was onto something Thanks to them as well.
is there any way to ensure that "1 5" is the default for Plain Text so that when such files are encountered they'll render correctly ?

hs2

  • Senior Community Member
  • Posts: 2754
  • Hero Points: 291
Re: Incorrect formatting in specific text file
« Reply #5 on: March 15, 2021, 09:51:40 pm »
There are extension/language specific configurations like ident with TABs or SPACEes, their spacing and many more. This is used as default for the associated type of files, which in turn can be overridden by the current Document settings.

bogedo

  • Community Member
  • Posts: 27
  • Hero Points: 0
Re: Incorrect formatting in specific text file
« Reply #6 on: March 15, 2021, 09:59:55 pm »
oops, thank you for pointing me in the right direction. setting the Tabs as "1 5" in the Formatting menu of the Plain Text options did the trick.

Thank you for your assistance on this one.