Code tags broken
Are code tags suddenly broken for anyone else?
Hurray, let's celebrate the forum software. Why
can't the developers at least beta test?The same every time, isn't it? How often did I tell
them not to try and improve anything?I wish they would just learn to listen.
Similar Messages
-
I cant use the code button. I click it nothing happens any idea why? I forgot the code that makes the code tags.
the "code" button was introduced for the homework kiddos in an attempt to honour their requests to "gif mi zu koduz" and teach them some English at the same time.
By general request of senior forum members that functionality has now been removed but the now disfunctional button was retained. -
Does the tlf support the <code> tag?
If not, what would you recommend doing to make that happen?
Thanks,
LanceTLF does not support a <code> tag. I'd suggest setting the font to mono-spaced font such as Courier, and setting the lineBreak attribute on the TextFlow to "explicit".
- robin -
Did the code tag implementation change?
Over in the UIX forum, we have been relying on the ability to embed XML content inside of a "code" tag - and for as long as I can remember this would automatically escape HTML/XML start/end tags so that they would be displayed in the message content. For example, users have been posting uiXML samples like this:
(Note, in this sample I have added a trailing whitespace in the opening code tag so that the forum software will display the tag instead of interpret it. Also, I have explicitly escaped < and > myself so that they will be displayed.)
[code ]
<messageTextInput id="whatever"
name="neededName"
prompt="Prompt 2">
<boundMessage select="error2"/>
</messageTextInput>
Previously, the code tag would automatically handle escaping the open/close tag characters (< and >) to the appropriate character entities (&lt; and &gt;). This no longer seems to be happening. The end result is that embedded XML code is sent back to the browser unescaped, and ends up being interpreted by the browser as HTML - which generally makes such content unreadable. Here is what the above sample looks like now:
[code ]
<messageTextInput id="whatever"
name="neededName"
prompt="Prompt 2">
<boundMessage select="error2"/>
</messageTextInput>
This change in behavior has two really bad consequences:
1. This is making it very difficult to post uiXML samples, which means that users are having a hard time posting test cases, and the UIX team is having a hard time posting sample solutions.
2. We have a large number of code samples that have been posted to the forum over the last year or so. All of these samples are now unreadable.
Was there a change in behavior in how the code tag handles HTML/XML escaping? Can we get the old behavior back?
AndyI really didn't mean to have smiley faces in my post - another interesting feature! What I meant to say was:
"Previously, the code tag would automatically handle escaping the open/close tag characters, < and > , to the appropriate character entities: &lt; and &gt;."
And actually, I forgot to take the whitespace out of my sample code tag - let me try posting the sample code one more time, this time inside of an actual code tag:
<messageTextInput id="whatever"
name="neededName"
prompt="Prompt 2">
<boundMessage select="error2"/>
</messageTextInput>Andy -
This is my first forum.
How do you use the 'code tags' on this site?
Should i click the code button then paste my code? Should I paste my code in between "like right here"?That's it! Well done.
But don't start new threads for everything, you should have replied to your other thread. -
My data I need is on my computer but it needs to be repaired but can't and when I try to restore it/back it up it ends abruptly with error code 32 broken pipe.
It was damaged while installing os x mountain lion and I found my data on disk repair (utility)Sounds like your hard drive is badly corrupted, likely due to problems that were already there when you started trying to install Mountain Lion. The problem is, if you don't have any backups already, you may not be able to recover all your data from this state. Do you have backups of that data already?
If not, I assume when you say that "it needs to be repaired but can't," you mean that Disk Utility tells you there is a problem with the disk, but that it is unable to repair it? If so, you can try repairing the drive using DiskWarrior, which can repair problems that Disk Utility cannot. That may give you access to your data again, but may not.
Also, it's important to understand that if your data is not backed up, everything you do with the computer runs the risk of overwriting or corrupting that data. You may want to go straight to trying to recover your data. See Recovering deleted files.
Regarding the error code, if you're trying to back up the drive using Disk Utility's Restore tab, note that that is often not successful when the drive you're trying to back up is corrupt.
Once the situation is resolved - either because you have backups, are able to recover your data files or are forced to accept that they are gone permanently - you will need to erase the hard drive and reinstall the system and all your apps from scratch. -
Revision: 9919
Author: [email protected]
Date: 2009-09-02 04:42:23 -0700 (Wed, 02 Sep 2009)
Log Message:
Fix closing </code> tag in an ASDoc comment for getTextFormat
QE notes: -
Doc notes: -
Bugs: -
Reviewer: -
Tests run: -
Is noteworthy for integration: No
Modified Paths:
flex/sdk/trunk/frameworks/projects/textLayout/textLayout_textField/src/flashx/textLayout/ controls/TLFTextField.asWelcome back everyone.
Hope you all had good holidays.
Cheers
glenn
tinylion development & design -
Can we have Quote and Code tags?
I think a lot of people miss knowing there are "code" tags because the option is not visually represented. How about a button for it at the top of the editor next to the link and spell check icon? More people knowing about that option and using it would make the posts MUCH more legible and people more likely to get helped.
Having quote tags like other forums would be extremely useful too.
ThanksI would love proper code highlighting support for PL/SQL and SQL source code. The current SQL highlighter only does uppercase reserved words (silly standard) and is also useless for PL/SQL code.
Also, a problem with syntax highlighting is expecting a string quote to end on the same line that it started. This is not always the case, especially when defining a string value that is used as a code template, and includes line feeds (e.g. defining a string literal for a SOAP envelope).
And if old vim can support it correctly, why not fresh new forum software? ;-) -
There was a time in these forums where posters were flamed mercilessly for not using code tags. Now it seems that OP's almost NEVER use them. It makes me nuts. I wonder though why the flaming has stopped.
1) Is everyone too flamed out thanks to AU_UK?
2) Have the new posters beaten down the standards?
Just ranting, sorry. Please please please use code tags.
please?For those who miss the URL tag, try the following. It works in IE, but I don't know about any other browsers. I found this on the internet a while back.
Make a favorite (on your Links bar is a good place), with the following as the URL (all in one string, of course--get rid of any spaces that the forum might insert):
javascript:if(frames.length>0){alert('Frames!')}else{ulBV3pQy=document.selection.createRange().text;if(ulBV3pQy!=''){location.href=ulBV3pQy.replace(/\042/g,'').replace(/\047/g,'')}else{alert('Select%20text%20on%20page%20like:\n%20%20%20http://www.domain.com...')}}(Sorry for the long line--code tags should eliminate the extraneous spaces, right?)
Then, if you see a link in a page, such as any of the following links that OPs need to remember:
http://www.google.com
http://java.sun.com/j2se/1.4.2/docs/api/
http://java.sun.com/j2se/1.5.0/docs/api/
Select (highlight) the link, click the "Favorite" that you made, and the link will be opened in the current window. No need to copy and paste--just highlight and click the favorite.
I have found this shortcut to be quite useful. -
Code tags in forum help produce white on black
Have a look: https://bbs.archlinux.org/help.php#smilies
On my browser, code tags in normal posts are rendered black on powder blue:
Lorem ipsum dolor sit amet, suas lorem menandri pro at, quod quot tritani ne cum. Eu mei cetero molestiae dissentiet, eam suas case aliquando id. Cum id mazim audire quaeque. Sit no tation apeirian, an mazim minimum temporibus cum. Et libris reprimique referrentur ius, vis ea fastidii delectus senserit.
Global setting? User setting?
Last edited by graysky (2013-01-02 21:01:47)cfr wrote:Is it intended that the links on the top right (and the logo on the top left) are only displayed for the default theme? So if I change the colours, I lose the links there to wiki/bugs/aur etc.?
Yes. The default theme was made exclusively for this forum. All other themes are provided by upstream and are generic. As such, they don't have site-specific stuff. -
Vanpersie - fix your code tags.
if I replied to your post you would no longer be able to edit it.... so please go fix your code tags.
if I replied to your post you would no longer be able
to edit it.... so please go fix your code tags.Now it's fixed
thank you -
When you're posting source code, enclose that code in the CODE tag so it is legible to other people on the forum. There is a BUTTON, directly above the Message text area that you can push to get a code tag to use. Put your code between the [CODE] and the [/CODE] tags and it will look much, much better!! And it will prevent a slew of people telling you to "use the code tag because we can't read it!" in stead of answering your question.
For example, this does NOT have the CODE tag:
public class MyClass
MyClass()
for(int x=0; x<10; x++)
if(x == 5)
for(int k=0; k<10; k++)
System.out.println("x="+x);
System.out.println("k="+k);
for(int g=0; g<10; g++)
System.out.println("does x even exist in this scope?");
if(x == 3)
System.out.println("Will this compile?");
And to compar and contrast, the following DOES use the CODE tag:public class MyClass
MyClass()
for(int x=0; x<10; x++)
if(x == 5)
for(int k=0; k<10; k++)
System.out.println("x="+x);
System.out.println("k="+k);
for(int g=0; g<10; g++)
System.out.println("does x even exist in this scope?");
if(x == 3)
System.out.println("Will this compile?");
}Also, for your information, if your code iterates through an array using the variable "i", the forum does this really strange thing of interpreting your "[i]" as an italics tag. Everyone forgets about this sometimes, it's not huge problem. But if you do think of it, when you post that code change your variable name so there is no [i] in it.
Alternately, you could leave the "i" variable name untouched, but edit your post so the square brackets get get through to the browser by replacing [ with the HTML code &#91; and the ] with the code &#93;Someone has to say it every now and again.
Then someone will post How To Ask Questions The Smart Way, then some kid will post "You are all evil mean horrid people, go pick on people you own size, you stinky-poo-poo-heads. It is not the poor defencless newbies fault that they can't see the code button, no, it was there mums fault for dropping them on the head a large number of times when they were babys. Mean mean stinky regs". Then someone will flame the Defender Of the Newbies, then we'll take about beastiality for a bit, while flaming the aformentioned Defender. Then Someone will quote Monty, and someone else will post the lyrics to some 80s hair-rock. -
Pre and Code tags buttons... ?
I've asked about the addition of buttons for the code and pre tags before (must have been one of the recently deleted posts, or the search is broken or something), and been told that it was being considered for the next version of Jive.
Unless I'm missing something obvious, it looks like those buttons (I was hoping them to be next to the bold, italics, underline, etc buttons) have not been included in the latest version. Any chance that they might be?
Edited by: Boneist on Aug 24, 2008 10:59 AMHi,
Just arrive after the upgrade.
Jive must have those "buttons".
SAP is using also Jive to power the Forums on [http://sdn.sap.com] and that functionality exist. (they do not have the "Rich text" Editor)
so, lets try (you must eliminate the spaces on between the brackets (I think that is the name of "{" and "}"
{ code } Displays the line as programming code { code }
Example { quote }Displays the text "Example" in italics with a special background { quote }
Example Something similar to the quote can be achieved putting ">" (without quotes) at the beginning of the paragraph
ExampleThere are other tags (change of size, color, font, links to threads, messages or users) but I think those are the ones you were looking for -
Dreamweaver CS3 Code Formatting broken
Hello, I am experiencing a huge deal of frustration with the
way Dreamweaver improperly formats code. In particular, the UL / LI
tags do not format correctly. Here is what I am trying to achieve:
<ul>
<li>
TEXT
</li>
</ul>
Now this pattern seems to correspond exactly to the preview
that you see when you go to Preferences > Code Format > Tag
Libraries, select the LI tag and choose Line Breaks: Before,
Inside, After and Contents: Formatted and Indented.
I have done this. I have also manually checked the .vtm file
in username > Application Data > Adobe > Dreamweaver >
Configuration etc.... and it corresponds to what I have set in the
Prefs.
However, when I use Design View to create the unordered list,
OR even if I just TOUCH a properly formatted list in Design View,
everything gets squeezed onto one line. I get this sort of thing:
<ul> <li>TEST</li> <li>MORE
TEST</li> </ul>
Here is what I have tried unsuccessfully to date:
1. Prefs > Code Formatting > Edit Tag Libraries...
2. Prefs > Code Format > UNCHECK Do not include a break
inside TD tag (I know, that's for TD, but I'm just trying
everything(
3. Prefs -> line breaks (tried Unix, Windows)
4. Commands > Apply Source Formatting (messes up my entire
code by putting everything inside the BODY tag on one line - in
other words, my entire page goes on one line now!)
5. Automatic Wrapping After Column 76 - this one is really
stupid, it just does a HARD break on each line so when you turn it
back off you have to go in and manually delete all these hard
breaks now...
There's a bunch of other small things I have tried, but
needless to say, nothing appears to be working.
Has no one else experienced this? Can you get Design View to
properly format UL / LI tags? If so, then something on my computer
is messed. But when I look at code generated by DW on some of my
co-workers' computers, they also have the same problem - I just
guess their tolerance for crappy code is higher than mine.
I'm using DW 9.0 (CS3) build 3481.
Please help! I have no hair left on my head to tear out and I
may have to go further afield.... ouch!
Thanks,
TomI just checked on DW CS4 and it's working as expected. If I
change my LI
entry in the Tag Libraries to Line Breaks: Before, Inside,
After and
Contents like you, I get your desired effect. Moreover, it
doesn't revert -
or worse if any changes are made, whether in Design or Code
view. I know
this doesn't help you verify or correct your CS3 issue, but
at least you
know there is an upgradeable light at the end of the tunnel.
Best - Joe
Joseph Lowery
VP of Product Management, WebAssist -
http://www.webassist.com
Author, Dreamweaver CS3 Bible -
http://www.idest.com/dreamweaver/
"tomaugerdotcom" <[email protected]> wrote
in message
news:[email protected]...
> Hello, I am experiencing a huge deal of frustration with
the way
> Dreamweaver
> improperly formats code. In particular, the UL / LI tags
do not format
> correctly. Here is what I am trying to achieve:
>
>
> TEXT
> </li>
>
>
> Now this pattern seems to correspond exactly to the
preview that you see
> when
> you go to Preferences > Code Format > Tag
Libraries, select the LI tag and
> choose Line Breaks: Before, Inside, After and Contents:
Formatted and
> Indented.
>
> I have done this. I have also manually checked the .vtm
file in username >
> Application Data > Adobe > Dreamweaver >
Configuration etc.... and it
> corresponds to what I have set in the Prefs.
>
> However, when I use Design View to create the unordered
list, OR even if I
> just TOUCH a properly formatted list in Design View,
everything gets
> squeezed
> onto one line. I get this sort of thing:
>
TEST</li>
MORE TEST</li>
>
> Here is what I have tried unsuccessfully to date:
>
> 1. Prefs > Code Formatting > Edit Tag Libraries...
> 2. Prefs > Code Format > UNCHECK Do not include a
break inside TD tag (I
> know,
> that's for TD, but I'm just trying everything(
> 3. Prefs -> line breaks (tried Unix, Windows)
> 4. Commands > Apply Source Formatting (messes up my
entire code by putting
> everything inside the BODY tag on one line - in other
words, my entire
> page
> goes on one line now!)
> 5. Automatic Wrapping After Column 76 - this one is
really stupid, it just
> does a HARD break on each line so when you turn it back
off you have to go
> in
> and manually delete all these hard breaks now...
>
> There's a bunch of other small things I have tried, but
needless to say,
> nothing appears to be working.
>
> Has no one else experienced this? Can you get Design
View to properly
> format
> UL / LI tags? If so, then something on my computer is
messed. But when I
> look
> at code generated by DW on some of my co-workers'
computers, they also
> have the
> same problem - I just guess their tolerance for crappy
code is higher than
> mine.
>
> I'm using DW 9.0 (CS3) build 3481.
>
> Please help! I have no hair left on my head to tear out
and I may have to
> go
> further afield.... ouch!
>
> Thanks,
>
> Tom
> -
I just recently used CoffeeCup and they have a whole list of tags you can double click on and it inserts them into your coding (HTML5, HTML, HTML4, CSS3+2, & PHP). Amazing! I need this but I want this on Dreamweaver.
Anyone know of a plugin or extension for Dreamweaver? I don't want to ditch my expensive editor but the lure of this code list makes me all giddy.
Below is a screenhot of what I'm taking about.Tag Library or Tag Chooser.
From Dreamweaver > Insert > Tag (Cmd or Ctrl E) shortcut. Or right click in code view > Insert Tag. See screenshot below.
Maybe you are looking for
-
How to show only one element in drop list(common VO)
Hi All, I'm using 11g adf jdev. I have a common view object VO. In this VO one attribute is dropdown list , which i commonly used in some jsf pages . Now in one particular jsf page i want show only one element in the dropdown list . how can i handle
-
Hi Experts, I need to remove a name on a group list in Outlook as the user is getting email delivery failure when processing via SAP (He sends the invoice for approval and emails get sent to different users for approval.) One of those users has left
-
Multiple facts with shared/non shared dimensions
Hello All, I have a scenario where we are using multiple facts in OBIEE. Fact1(Inventory Onhand) is joined to all shared dimensions, and Fact2( Forecasting Values) is joined to few shared dimesnions so the joins are like: Fact1 with Dim1, Dim2, Dim3,
-
HCM Process & form using scripts to - clear a field on a button click
Hi Experts, I created a validation routine and only need to call it when the check and send button is pressed. I read a blog and tried to ceated a flag but I am not sure which to use form calc or javascript. Any way, I tried and I get an error.
-
"No Administrator found for the task " ?
Hi All, I am using a standard method "display" in my ztask . [BO - FIPP, method - dispaly] workitem created by this task is to be delivered to "initiator". Now, initiator has this workitem in his inbox, but whenever he tries to execute that , a messa