
Fortunately, good text editors help you out when it comes to indenting. You could press tab or the space bar every single time you want to indent your code, but you shouldn't have to do that.
Brackets text editor indentation code#
Your text editor should make it easy to indent your code
You save yourself one level on indentation when you start nesting HTML inside HTML inside HTML inside HTML, this can add up. You know that & are the children of in fact, they're always the only children of, so there's no need to remind yourself of this via nesting. So why aren't & indented? A couple of reasons: You'd think that & would be indented inside -after all, they're children of, so shouldn't they be indented? What about the basic structure of a webpage? Ut enim ad minim veniam, quisĪdipisicing elit, sed do eiusmod tempor incididunt Sed do eiusmod tempor incididunt ut labore et dolore Lorem ipsum dolor sit amet, consectetur adipisicing elit, That said, if you want to indent, feel free. Note: We don't indent because most of the time the contents are short, because we're more concerned about the &, & because it can really lengthen the overall code. Note: Again, we don't indent & most other items inside because they're short. Note: We don't indent & other headers because they're short, but if you want to indent, that would be fine. Note: Again with the multiple levels of indenting-but it should be obvious how much it helps reading that code! See how easy it is to tell what's a child of what? Note: Notice how text/content is indented inside, and then is indented inside. Here are some examples of how WebSanity likes to indent our code. Easy to differentiate between code & text/content.
Start ( ) & end ( ) are at same level, so it's easy to see that you've closed code & also see where code starts & ends. Problem: Because everything is at left margin, hard to differentiate code & text/content Ullamco laboris nisi ut aliquip ex ea commodo consequat.
Ut enim ad minim veniam, quis nostrud exercitation Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt Wrong method 2: 3 lines, but no indentation
Hard to see where the is, even with wrapping turned on. Hard to figure out where code ends & text/content begins. Ut enim ad minim veniam, quis nostrudĮxercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor but since the Text Editor is officially in maintenance mode, again, ensure the greenlight of the module owner before you invest in implementing a new feature or a fix in the Text Editor.Let's look at some examples of coding techniques to make it clear why you should indent your HTML. Bug: The “line number highlight” doesn’t follow the cursor (caret) when selecting multiple lines of text: /t/blender-ui-paper-cuts/2596/3530Įtc. API: Get selected text as string: /D6377. Text colors not aligned with 2.8+ colors. Intellisense: /tin2tin/Intellisense_for_Blender_Text_Editor. Make unused sidebar space transparent(Region Overlap). Recent files: munity/c/rightclickselect/8qhbbc/. Wrap on as default setting(continue search from top, who doesn’t want that?). Display output in either python console: munity/c/rightclickselect/vwfbbc/ or Info Editor: /D9752. There are plenty of very basic things missing from the Text Editor: