Code Monkey home page Code Monkey logo

Comments (3)

nitingupta910 avatar nitingupta910 commented on June 1, 2024

code-blocks creates a 1-table cell when formatting selections that begin and end with empty lines. When tab is pressed, google docs inserts a new row which appears as un-deletable newline since table borders are set to 0-pt by this plugin.

For selections within a line, this plugin does not create a table and tab behavior is as expected.

I don't understand why does this plugin ever use that 1-cell table and why not simple replace selection with formatted input as text without any tables.

from code-blocks.

nitingupta910 avatar nitingupta910 commented on June 1, 2024

btw, just learnt that you can insert tab in a table using 'Ctrl + ]' on PC, or 'Command + ]' on mac.

from code-blocks.

alexwforsythe avatar alexwforsythe commented on June 1, 2024

Great explanation @nitingupta910. Thanks!

As for why the 1x1 table is used, there are several reasons:

  • Cells have a more consistent background color when multiple lines are formatted
  • Tables can be deleted easily (Right-click>Delete table)
  • Cells can be reformatted easily by placing the cursor anywhere within the cell, changing the theme, and reselecting Format (see #9 & #38)

As of now, I don't have any plans to change that behavior.

from code-blocks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.