SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: imtribble on August 12, 2021, 06:27:59 PM

Title: Editor locks up while editing aspx code
Post by: imtribble 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
Title: Re: Editor locks up while editing aspx code
Post by: patrick 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".

Title: Re: Editor locks up while editing aspx code
Post by: patrick 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.


Title: Re: Editor locks up while editing aspx code
Post by: imtribble on August 12, 2021, 08:09:37 PM
Awesome!

It works great.

Thanks