Author Topic: Editor locks up while editing aspx code  (Read 175 times)

imtribble

  • Community Member
  • Posts: 31
  • Hero Points: 3
Editor locks up while editing aspx code
« on: August 12, 2021, 06:27:59 pm »
I have an issue where the editor locks up when I try to insert a <label> in to some preexisting asp code.

...
                <div class="col-sm-3">
                    <div class="form-row">
                        <label>
                         Loss Runs available
                        <div class="input-container">
                            <asp:DropDownList ID="ddlLossRuns" runat="server">
                            <asp:ListItem Value="Y">Yes</asp:ListItem>
                            <asp:ListItem Value="N">No</asp:ListItem>
                            </asp:DropDownList>
                        </div>
                        </label>
                    </div>
                </div>

            </div>

<!--need to insert it <label > here and editor will lock up   -->

            <div class="row">
                <div class="col-md-6">
                    <div class="form-row submit">
                        <button type="submit" id="btnSave" class="button blue">Save</button>
                        <a id="aBack" class="cancel ml-3" runat="server">Cancel[/url]
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>
</asp:Content>

I've attach this file for easier testing

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1637
  • Hero Points: 140
Re: Editor locks up while editing aspx code
« Reply #1 on: August 12, 2021, 07:29:11 pm »
I can reproduce it on my system, I'm taking a look.  As a temporary workaround, open that file, go to the Document menu, and uncheck "beautify while typing".


patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1637
  • Hero Points: 140
Re: Editor locks up while editing aspx code
« Reply #2 on: August 12, 2021, 08:04:58 pm »
Attached is an updated Slick-C file you can load to fix this.  Download it, and then in SlickEdit, go to the SlickEdit command line and type in "load some/path/beautifier.e"  where "some/path" is wherever you saved the file to.  You only have to load it once, it will be remembered in later editor sessions.

Thanks for the report.  Let us know if you run into anything else.



imtribble

  • Community Member
  • Posts: 31
  • Hero Points: 3
Re: Editor locks up while editing aspx code
« Reply #3 on: August 12, 2021, 08:09:37 pm »
Awesome!

It works great.

Thanks