Hey everyone!

With the holiday season upon us, we want to share our upcoming working hours:

After that, we’ll return to our regular schedule and assist you as quickly as possible.

In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find tons of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel), which might just have the answers you need while we’re away.

Thanks a bunch for your understanding and support!

Warm regards and happy holidays!

TMS

Okay
  Public Ticket #3413430
Subscript and Superscript
Closed

Comments

  • Paul started the conversation

    1.Is there code for Leading – or the space between lines?

    2.Is there a piece of code that could change the font size of the character when it is superscript or subscript?

    For example: Under 750<sup>c</sup><br>

  •  1,847
    Miloš replied

    Hi, Paul.

    1. For making new lines with our Plugin,

    1. If you use a 'multi-line String' column with a 'multi-line Editor' input type.

    So, if this is a Manual table, or Imported table from a file,  during table generation you will be able to choose for each column which type it will be.

    8853134963.png

    If you set the column from the start as a "multi-line String" , it gets saved in your database as "TEXT";

    then you can use 'multi-line Editor',

     and with combination of "shift+ENTER" you will be able to make new lines like that, 

    without the need for <br> HTML tags.

    ( If you already made the column as one-line string, you can go do the database, find this table and change the column type from VARCHAR to TEXT,  which is a multi-line string).

    1901578003.png

    -

    2.  Another way can be to use a "HTML Editor" , and there you can just press "Enter" for new lines.

    In HTML Editor you can just press "Enter" and it makes new lines, while in the background code it creates HTML markup, with paragraphs.

    6668406850.png
    8563179518.png
    6632989961.png

    3. And finally, if you use Simple Tables, there you can use HTML Editor as well, for making new lines with "Enter", 

    and it adds custom HTML in the cell, but it renders only the text in the cell.

    6322744217.png

    7382717529.png

    1068235837.png


    2. For superscript or subscript :

    This can be used in our String Columns with HTML Editor.

    Depending on the length of the characters in a cell that you might need,

     if it is longer than 255, it is best to set it up as a "multi-line string", 

    just to avoid a "VARCHAR(255 limit)", compared to a "TEXT" Column which can store up to 65,535 characters.


    - Here is a test example.

    If we make a table editable, and set editor input type as HTML editor; 

    when you go for new entries or edit existing ones, there are these options "subscript" and "superscript".

    5331533431.png

    ;

    You can also input special characters, like this "R" I made here :

    4153131249.png

    I copied the symbol from an example on a Wordpress Tutorial page : <sup>®</sup> and input it into the HTML editor.

    Let me know if this is something you could use, or if perhaps you need something else.

    I guess it depends if you can just use strings, or if you need to do some functions with a numeric data type.

    Thank you.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables