Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Site Comments & Suggestions Site Comments & Suggestions
Search Search
Search for:
Tech Support Guy > > >

Code Tags are going goofy


(!)

Squashman's Avatar
Trusted Advisor with 19,648 posts.
THREAD STARTER
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
02-Aug-2012, 08:12 AM #1
Code Tags are going goofy
I have always been able to put the output of the TREE command from a cmd prompt into code tags and everything would format nice and pretty just like you see it in the cmd window.
I just used it today and all of a sudden it isn't displaying correctly.
Even went back and looked at an old post that I used the TREE command output in.
http://forums.techguy.org/dos-other/...-compares.html

It kind of looks OK in QUOTE tags but doesn't show the indentation very well. All the file names should be indented under their respective GROUP folder.
Quote:
H:\>tree Project1 /f
Folder PATH listing for volume DATA
Volume serial number is D2F3-49FA
H:\PROJECT1
├───group1
│ foo1.txt
│ foo2.txt
│ menu.txt

├───group2
│ foo1.txt
│ foo2.txt
│ menu.txt

└───group3
Code:
H:\>tree Project1 /f
Folder PATH listing for volume DATA
Volume serial number is D2F3-49FA
H:\PROJECT1
├───group1
│       foo1.txt
│       foo2.txt
│       menu.txt
│
├───group2
│       foo1.txt
│       foo2.txt
│       menu.txt
│
└───group3

Last edited by Squashman; 02-Aug-2012 at 08:43 AM..
Ent's Avatar
Ent   (Josiah) Ent is offline Ent is a Trusted Advisor with special permissions.
Computer Specs
Trusted Advisor with 5,270 posts.
 
Join Date: Apr 2009
Location: United Kingdom
Experience: Intermediate
02-Aug-2012, 08:20 AM #2
Squashman's Avatar
Trusted Advisor with 19,648 posts.
THREAD STARTER
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
02-Aug-2012, 08:45 AM #3
Quote:
Originally Posted by Ent View Post
So the fix Mike did for you broke my CODE!
This means war!
Ent's Avatar
Ent   (Josiah) Ent is offline Ent is a Trusted Advisor with special permissions.
Computer Specs
Trusted Advisor with 5,270 posts.
 
Join Date: Apr 2009
Location: United Kingdom
Experience: Intermediate
02-Aug-2012, 08:54 AM #4
Sounds like it. I'm not quite sure why though. It seemed to leave literal characters intact. Maybe it's because tree gives non-Ascii Characters.
Code:
& & 
☠ ☠

Ent's Avatar
Ent   (Josiah) Ent is offline Ent is a Trusted Advisor with special permissions.
Computer Specs
Trusted Advisor with 5,270 posts.
 
Join Date: Apr 2009
Location: United Kingdom
Experience: Intermediate
02-Aug-2012, 08:55 AM #5
Yep, that looks like the difference. Plug in a literal Unicode character and it reverts to code mode.
Squashman's Avatar
Trusted Advisor with 19,648 posts.
THREAD STARTER
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
03-Aug-2012, 05:02 PM #6
/me very
Ent's Avatar
Ent   (Josiah) Ent is offline Ent is a Trusted Advisor with special permissions.
Computer Specs
Trusted Advisor with 5,270 posts.
 
Join Date: Apr 2009
Location: United Kingdom
Experience: Intermediate
04-Aug-2012, 03:09 PM #7
The obvious solution is to put it back as it was originally unless/until this bug can be fixed.
TechGuy's Avatar
TechGuy   (Mike) TechGuy is offline TechGuy has a Profile Picture
Computer Specs
Administrator with 12,774 posts.
 
Join Date: Feb 1999
Location: Chambersburg, PA
Experience: Advanced
05-Aug-2012, 09:32 AM #8
Hmm... I'm not sure that I understand. This doesn't sound like a bug, but that it's an unexpected consequence... Perhaps when we want special characters to appear, we could use Quote or another tag? I think that Code is the correct tag to indicate that we do not want the special characters to be displayed...
Ent's Avatar
Ent   (Josiah) Ent is offline Ent is a Trusted Advisor with special permissions.
Computer Specs
Trusted Advisor with 5,270 posts.
 
Join Date: Apr 2009
Location: United Kingdom
Experience: Intermediate
05-Aug-2012, 09:37 AM #9
I don't think that's quite the problem.
He didn't type the &...; codes, he just copied in the characters because the TREE command gives high unicode characters in its output.

If you copy the skull character from my post above and paste it (not &# 9760 ; ) into a code box, it reverts to &# 9760 ;
TechGuy's Avatar
TechGuy   (Mike) TechGuy is offline TechGuy has a Profile Picture
Computer Specs
Administrator with 12,774 posts.
 
Join Date: Feb 1999
Location: Chambersburg, PA
Experience: Advanced
05-Aug-2012, 09:50 AM #10
I might be wrong, but that's what I'd expect it to do... surely the symbol needs to be converted to the proper code (probably by the browser)? It can't be stored as the symbol...
Squashman's Avatar
Trusted Advisor with 19,648 posts.
THREAD STARTER
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
05-Aug-2012, 10:39 AM #11
It has always worked in the past. That is all I know. And to go back and see old posts now messed up made me think something changed recently.
Cookiegal's Avatar
Administrator & Malware Removal Specialist with 97,697 posts.
 
Join Date: Aug 2003
18-Nov-2012, 08:29 PM #12
Reopened as requested.
Squashman's Avatar
Trusted Advisor with 19,648 posts.
THREAD STARTER
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
18-Nov-2012, 09:39 PM #13
Mike is there any chance we can find a work around for this issue.
TechGuy's Avatar
TechGuy   (Mike) TechGuy is offline TechGuy has a Profile Picture
Computer Specs
Administrator with 12,774 posts.
 
Join Date: Feb 1999
Location: Chambersburg, PA
Experience: Advanced
19-Nov-2012, 10:31 AM #14
I can remove the change I made -- so that all ASCII characters (whether entered as code or symbol) show up as symbol in CODE blocks if that's what most folks want.
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑