tag:blogger.com,1999:blog-496482.post8044964982757357436..comments2024-03-26T03:20:19.840-04:00Comments on For Some Value of "Magic": Blogger Behind the Curve?Stevehttp://www.blogger.com/profile/15732819755000554717noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-496482.post-79706109685849535962007-09-18T14:16:00.000-04:002007-09-18T14:16:00.000-04:00Hi guys,I can live with the editors they have if t...Hi guys,<BR/>I can live with the editors they have if they would only make at least <pre> tags work so indentation is preserved and I get a fixed width font. Icing on the cake would be something like Wikipedias [source lang=python] tag.<BR/><BR/>I'll try and post an indented version of my python script to aid the posting of indented text ;-)<BR/><BR/><BR/>'''<BR/>blogspace.py<BR/>Turns leading spaces into HTML   tokens which shows<BR/>as correct indentation on Blogger comment fields<BR/>(and maybe other blogs).<BR/><BR/>Donald. 'Paddy' McCarthy Sept 2011<BR/>'''<BR/>import fileinput, re<BR/><BR/><BR/>for l in fileinput.input():<BR/> print re.sub(r'^(\s*)\s',<BR/> lambda m: ' '*m.end(),<BR/> l.rstrip())<BR/><BR/><BR/>- Paddy.<BR/>(Not bad on the preview)Paddy3118https://www.blogger.com/profile/06899509753521482267noreply@blogger.comtag:blogger.com,1999:blog-496482.post-79984307218942963502007-09-18T10:12:00.000-04:002007-09-18T10:12:00.000-04:00Unfortunately the worlds leading blog software (Wo...Unfortunately the worlds leading blog software (WordPress) has many of the same problems. The latest version just released tries to address some of the problems, but source code can still be a huge problem. At least the html is now valid and your hand added html is not mangled as bad as it was.<BR/><BR/>I find it ironic that a file format specifically designed for machine interpretation, is the one machines have the hardest time modifying properly. Are there any great online editors?Doug Napoleonehttps://www.blogger.com/profile/07331585381804299154noreply@blogger.com