auto-indent behaviour on edit - Post...

User 375683 Photo


Registered User
50 posts

Hi Gang
(drat had to redo post because it loses tabs and spaces)


This seems weird but I don't want to use the "b" word.
,,,,,.items{
,,,,,,,,,,,,float:left;
,,,,,,,,,,,,width:60px;(cursor)
,,,,, }

hit enter, result
,,,,,.items{
,,,,,,,,,,,,float:left;
,,,,,,,,,,,,width:60px;
,,,,,,,,,,,,(cursor)
,,,,, }

Good cursor exactly where you want it to be.
let's add another property <padding>
start typing "pa"
,,,,,.items{
,,,,,,,,,,,,float:left;
,,,,,,,,,,,,width:60px;
,,,,,,,,,,,,pa(list pops up with first item as padding, hit enter)
,,,,, }

after hitting enter
,,,,,.items{
,,,,,,,,,,,,float:left;
,,,,,,,,,,,,width:60px;
padding:
,,,,,}

GAA! we lost the indent.

comments?

bye

eric

User 187934 Photo


Senior Advisor
20,190 posts

Hi Eric,
Don't hit enter, but click the proper value.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2815606 Photo


Registered User
55 posts

Start typing in the property name;
html editor will bring up a list of options (usually the default option is highlighted);
- To select the highlighted option press the TAB key on your keyboard, or use your mouse to select and click it;
- To scroll down through the options use your Up or Down keys on your keyboard,
use TAB to select the highlighted option or use your mouse to select an option..
Attachments:
User 375683 Photo


Registered User
50 posts

Gentlemen

Eric. Yeah I've been around computers so long I usually work from keyboard.
Nope. tried it. Clicked on it with mouse and it jumps to the left margin


David: Nope it still kicks to the left margin.
BUT thank you for the tab tip. I did not know that would bring up properties. Cool

bye

eric
HTML Editior 16.1 build 808
User 375683 Photo


Registered User
50 posts

Hi Gang
So what is happening?

Is no one else seeing this?

Did I not explain it clearly?

Is it a bug?

I'd say so. Only editor I have that does this.
And on a even a moderately complex page you can get several tabs deep.
Adding tabs every time you edit is a pain.
To be clear. It keeps its tab position when you are creating the style.
IT loses its tab position when you go back to an existing element.
As in my example, position cursor end of last declaration, hit enter, it DOES jump to the right tab stop
BUT as soon as you select a property it jumps to left margin.

bye
eric
User 379556 Photo


Registered User
1,535 posts

I've tried and failed to replicate the problem, and note that you posted regarding a similar problem before.

Unless someone can replicate the problem, it seems possible that some other program on your computer is interfering with the normal working of HTML Editor. I would be inclined to see whether it still happens if HTML Editor is run in Windows Safe Mode.

If it doesn't happen in Safe Mode, I guess that curing the problem will be a matter of rather tedious experimentation to see what process or other program is causing the problem in normal mode.

If it happens even in Safe Mode, perhaps some corruption has occurred in the settings of the program, in which case I would probably do a complete uninstall and then reinstall using all the default options regarding where the installation is placed etc.

Frank





User 375683 Photo


Registered User
50 posts

Interesting.
Thanks Frank for testing and advising.
It's such a good editor I expected auto-indent to work.
Knowing it does and the problem is on my end gives me a direction.
I'll noodle around.

Thank you

Bye
eric
User 2906089 Photo


Registered User
222 posts

Hello Eric,

Are you using tabs or spaces? Can you produce a file that has the problem, and a screen shot of what you are seeing, because the forum does mangle code.

I have seen some really bizarre spacing in the HTML editor. It almost always happens when importing other peoples code. The built in Code Cleaner will not fix those types of files to well. I'll usually pop into vs code and use "prettier" or similar type of tool.

Yes, indenting manners!
Learn something, Share something.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.