Jump to content

It appears that code has been turned into a straight line, so if you do copy+paste you'd need to space it yourself. Annoying.

And when I do replies/posts, my previous reply/post shows up and I have to manually delete it.

"You don't need headphones, all you need is willpower!" ~MicroCenter employee

 

How to use a WiiMote and Nunchuck as your mouse!


Specs:
Graphics Card: EVGA 750 Ti SC
PSU: Corsair CS450M
RAM: A-Data XPG V1.0 (1x8GB) (Red)
Procrastinator: Intel i5 4690k @ 4.4GHz 1.3V
Case: NZXT Source 210 Elite (Black)
Speakers and Headphones: Monitor Speakers and Phlips SHP9500s
MoBo: MSI Z97 PC MATE
SSD: SanDisk Ultra II (240GB)
Monitor: LG 29UM68-P
Mouse: Mionix Naos 7000
Keyboard: Corsair K70 RGB (2016) (Browns)

Webcam/mic: Logitech C270
 

Link to comment
https://linustechtips.com/topic/582639-posting-and-code/
Share on other sites

Link to post
Share on other sites

3 minutes ago, BingoFishy said:

It appears that code has been turned into a straight line, so if you do copy+paste you'd need to space it yourself. Annoying.

I'm not sure what you mean? If I paste code from my IDE into the post, it retains its formatting correctly:

/**
 * Abstract Method: Exists?
 *
 * @param  string $key   Key
 * @return bool
 */
protected function exists( $key )
{
   return FALSE;
}

If I paste it into the code dialog, it also works:

	/**
	 * Abstract Method: Exists?
	 *
	 * @param	string	$key	Key
	 * @return	bool
	 */
	protected function exists( $key )
	{
		return FALSE;
	}

 

3 minutes ago, BingoFishy said:

And when I do replies/posts, my previous reply/post shows up and I have to manually delete it.

That's a known issue, but it's working as intended by the forum software developers, and it's very difficult to change without them because it's all hard coded.

HTTP/2 203

Link to comment
https://linustechtips.com/topic/582639-posting-and-code/#findComment-7605145
Share on other sites

Link to post
Share on other sites

2 minutes ago, colonel_mortis said:

I'm not sure what you mean? If I paste code from my IDE into the post, it retains its formatting correctly:


/**
 * Abstract Method: Exists?
 *
 * @param  string $key   Key
 * @return bool
 */
protected function exists( $key )
{
   return FALSE;
}

If I paste it into the code dialog, it also works:


	/**
	 * Abstract Method: Exists?
	 *
	 * @param	string	$key	Key
	 * @return	bool
	 */
	protected function exists( $key )
	{
		return FALSE;
	}

 

That's a known issue, but it's working as intended by the forum software developers, and it's very difficult to change without them because it's all hard coded.

Huh. What I was looking at earlier I had to manually space like 3 scripts.

I guess that issue's out of the way. Thanks.

"You don't need headphones, all you need is willpower!" ~MicroCenter employee

 

How to use a WiiMote and Nunchuck as your mouse!


Specs:
Graphics Card: EVGA 750 Ti SC
PSU: Corsair CS450M
RAM: A-Data XPG V1.0 (1x8GB) (Red)
Procrastinator: Intel i5 4690k @ 4.4GHz 1.3V
Case: NZXT Source 210 Elite (Black)
Speakers and Headphones: Monitor Speakers and Phlips SHP9500s
MoBo: MSI Z97 PC MATE
SSD: SanDisk Ultra II (240GB)
Monitor: LG 29UM68-P
Mouse: Mionix Naos 7000
Keyboard: Corsair K70 RGB (2016) (Browns)

Webcam/mic: Logitech C270
 

Link to comment
https://linustechtips.com/topic/582639-posting-and-code/#findComment-7605152
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×