robertbasic / pugdebug

pugdebug is a standalone debugging client for PHP applications that uses XDebug as the debugging engine.
http://pugdebug.com/
Other
73 stars 15 forks source link

Make tab width configurable when viewing source #170

Closed glenreesor closed 7 years ago

glenreesor commented 8 years ago

It would be nice if you could change configure the tab width on a pre-project basis.

romellem commented 8 years ago

I was looking at this too.

While it'd be nice if this was configurable somehow, I was able to modify the source code to set the tab width away from its default value.

Open pugdebug/gui/document.py and go to PugdebugDocumentContents::init (line 161), and add the following line:

"""
Change tab width to 20px (default is 80px I think...)
"""
self.setTabStopWidth(20)

I placed that after the self.setPlainText call, but I'd imagine you could put it anywhere after the super call at the top.

glenreesor commented 8 years ago

Thanks Robert. Are you still actively developing this? Would you accept pull requests?

On May 4, 2016 8:42:53 AM MDT, romellem notifications@github.com wrote:

I was looking at this too.

While it'd be nice if this was configurable somehow, I was able to modify the source code to set the tab width away from its default value.

Open pugdebug/gui/document.py and go to PugdebugDocumentContents::init (line 161), and add the following line:

"""
Change tab width to 20px (default is 80px I think...)
"""
self.setTabStopWidth(20)

I placed that after the self.setPlainText call, but I'd imagine you could put it anywhere after the super call at the top.


You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/robertbasic/pugdebug/issues/170#issuecomment-216886789