You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Tab = 4 spaces

Author (Read 2971 times)

0 Members and 1 Guest are viewing this topic.

Re: Tab = 4 spaces
« Reply #4 on: July 21, 2016, 05:48:20 PM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1471
    Posts
  • Reputation: 214
  • Linux Lite Member
    • View Profile
    • dbts-analytics.com

  • CPU: i7 4 cores 8 threads

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD graphics

  • Kernel: 5.x
I assume you are speaking of posting code to WordPress. If so just use your native editor or vim, and use the css wrap code from there.

https://en.support.wordpress.com/code/posting-source-code/

Otherwise you can fool with the emacs, but you will run into unnecessary problems depending on what your system will see. I/E boot screen functions, and other minibuff functions will override your setting. Global is overkill. Just get your editor configured for the WP wrap code.

http://ergoemacs.org/emacs/emacs_tabs_space_indentation_setup.html

I can't walk you through the WordPress setup, as I never use it, but I bet vim will work fine with it.

TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: Tab = 4 spaces
« Reply #3 on: July 21, 2016, 05:03:11 PM »
 

thoughtinstinct

  • Occasional Poster
  • **
  • 87
    Posts
  • Reputation: 6
  • Love Linux Lite
    • View Profile

  • CPU: 4x Intel(R) Core(TM) i5-3437U CPU @ 1.90GHz

  • MEMORY: 8Gb

  • Kernel: 6.x
Thanks for the quick reply. I want to enable this globally as i dont use the tab key for nothingelse and i read in searches that different editors might interpret the tab differently and cause problems and so on.

Im all ears though on the best way to do this. All i want to do is use this when im pretending to code on wordpress.

Thanks
 

Re: Tab = 4 spaces
« Reply #2 on: July 21, 2016, 04:53:16 PM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1471
    Posts
  • Reputation: 214
  • Linux Lite Member
    • View Profile
    • dbts-analytics.com

  • CPU: i7 4 cores 8 threads

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD graphics

  • Kernel: 5.x
http://vim.wikia.com/wiki/Indenting_source_code

My only question is: why would you want enabled globally?

TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Tab = 4 spaces
« Reply #1 on: July 21, 2016, 03:42:50 PM »
 

thoughtinstinct

  • Occasional Poster
  • **
  • 87
    Posts
  • Reputation: 6
  • Love Linux Lite
    • View Profile

  • CPU: 4x Intel(R) Core(TM) i5-3437U CPU @ 1.90GHz

  • MEMORY: 8Gb

  • Kernel: 6.x
Hi all

I will like to permanently and everywhere for the tab to be 4 spaces. Can somebody help me with this please.
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section