locked
Any quick text html style editor ? RRS feed

  • Question

  • User-775831949 posted

    I need to work on paragraph and text so I need to add a lot of style like bullet points, fonts etc.

    Is there a quick online helper for me to generate such html/css for me ?

    I tried Ms Word and save as html it generates a lot of not ready to use codes.

    I tried VS2019 but so far it is not so good.

    Any suggestion ? Thanks

    Sunday, June 16, 2019 10:25 AM

Answers

All replies

  • User475983607 posted

    I recommend learning HTML.  It's a very basic markup language. 

    Most developers do not use a editor they write HTML markup and use a browser to check the format/layout.  The reasoning is you need to check all the major browser anyway and using an editor creates extra work.

    There are tons HTML resources and W3Schools is very good.

    https://www.w3schools.com/html/

    Sunday, June 16, 2019 10:35 AM
  • User-719153870 posted

    Hi hkbeer,

    As mgebhard said, writing HTML markup and using a browser to check the format/layout is more accurate and clean.

    If you insist on getting HTML in a faster way, I've made a webform demo that allows you to get HTML directly from edited text.

    For the same functionality, please refer to the following code:

    ASPX:

    <%@ Page Language="C#" AutoEventWireup="true" validateRequest="false" CodeBehind="HtmlCSS.aspx.cs" Inherits="WebformDemo02.HtmlCSS" Debug="true" %>
    
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
    
    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div style="width:500px;margin:10px;">
                <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                <asp:TextBox ID="TextBox1" runat="server" Width="500px" Height="300px" TextMode="MultiLine"></asp:TextBox>
                <ajaxToolkit:HtmlEditorExtender ID="HtmlEditorExtender1" EnableSanitization="false" TargetControlID="TextBox1" runat="server"></ajaxToolkit:HtmlEditorExtender>
                <br />
                <asp:Button ID="Button1" runat="server" Text="Show me the HTML" Width="200px" OnClick="Button1_Click" />
                <asp:Button ID="Button2" runat="server" Text="Clear" OnClick="Button2_Click" />
            </div>
            <div style="width:500px;margin:10px;">
                <asp:TextBox ID="TextBox2" runat="server" Width="500px" Height="300px" TextMode="MultiLine"></asp:TextBox>
            </div>
        </form>
    </body>
    </html>
    

    .CS

    protected void Button1_Click(object sender, EventArgs e)
            {
                if (TextBox1.Text != "")
                {
                    TextBox2.Text = TextBox1.Text;
                }
            }
    
    protected void Button2_Click(object sender, EventArgs e)
            {
                TextBox1.Text = "";
            }

    Here is result of this demo:

    Notice: As you can see, this demo may have many functional limitations.

    Hope the above can help you.

    Best Regard,

    Yang Shen

    Monday, June 17, 2019 6:49 AM
  • User-1038772411 posted

    Hello hkbeer,

    You can use following online Editor which generates html code.

    Try with this, i hope this wil help you.

    1) https://html-online.com/editor/

    2) https://html-css-js.com/css/generator/font/

    Thank you.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 17, 2019 7:03 AM
  • User-775831949 posted

    Thanks.

    Wednesday, June 19, 2019 2:54 AM