Click here to Skip to main content
15,893,588 members
Home / Discussions / Article Writing
   

Article Writing

 
GeneralRe: Existing article closed Pin
Naveen Kumar Matteddula8-Mar-15 2:07
professionalNaveen Kumar Matteddula8-Mar-15 2:07 
GeneralRe: Existing article closed Pin
OriginalGriff8-Mar-15 2:17
mveOriginalGriff8-Mar-15 2:17 
GeneralRe: Existing article closed Pin
Naveen Kumar Matteddula8-Mar-15 2:30
professionalNaveen Kumar Matteddula8-Mar-15 2:30 
GeneralRe: Existing article closed Pin
OriginalGriff8-Mar-15 2:38
mveOriginalGriff8-Mar-15 2:38 
GeneralRe: Existing article closed Pin
Naveen Kumar Matteddula8-Mar-15 2:59
professionalNaveen Kumar Matteddula8-Mar-15 2:59 
GeneralRe: Existing article closed Pin
Nelek8-Mar-15 22:18
protectorNelek8-Mar-15 22:18 
GeneralRe: Existing article closed Pin
OriginalGriff8-Mar-15 22:31
mveOriginalGriff8-Mar-15 22:31 
QuestionNeed help for making a mutli-language code tab Pin
Afzaal Ahmad Zeeshan5-Mar-15 6:19
professionalAfzaal Ahmad Zeeshan5-Mar-15 6:19 
Hey guys,

I am writing an article where, I need to add code in multiple languages (right now, I am willing to post code solution in C++, C#, Java and VB.NET). But I am not able to do so. According to Chris' tip, the following code is required,

HTML
<div class="code-samples">
<pre lang="C#">
...
// some C# code
...
</pre>
<pre lang="VB.NET">
...
' some VB code
...




I am also using the following code,

HTML
<div class="code-samples">
<pre lang="Java">
class ComplexNumber {
// Properties that a ComplexNumber can have
    private boolean isPolar;

    // For a non-polar complex number
    private int real;
    private int imaginary;

    // For a rectangular complex number
    private int radius;
    private int angle;
};
</pre>
<pre lang="C++">
class ComplexNumber {
// Properties that a ComplexNumber can have
private:
    bool isPolar;

    // For a non-polar complex number
    int real;
    int imaginary;

    // For a rectangular complex number
    int radius;
    int angle;
};
</pre>
</div>


But that doesn't seem to work in my case. It does show tab titles (Java, C++) but doesn't actually change the content of the tabs, Java code (first one) is always the code shown, whereas C++ code is shown under the Java code (as a seperate block), not inside the multi-language code tab. Once I click on the C++, it then scrolls the browser's window down to the block where C++ code exists.

Why is it so? The current way the code is being displayed (preview of the article) can be viewed at: http://s28.postimg.org/5st9jvk0t/Screenshot_756.png[^]. Waiting for guidance...
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

AnswerRe: Need help for making a mutli-language code tab Pin
Chris Maunder5-Mar-15 13:20
cofounderChris Maunder5-Mar-15 13:20 
Questionemmm.... how can...? Pin
Nelek5-Mar-15 0:35
protectorNelek5-Mar-15 0:35 
AnswerRe: emmm.... how can...? Pin
Sean Ewington5-Mar-15 1:58
staffSean Ewington5-Mar-15 1:58 
GeneralRe: emmm.... how can...? Pin
Nelek5-Mar-15 6:37
protectorNelek5-Mar-15 6:37 
GeneralRe: emmm.... how can...? Pin
Sean Ewington5-Mar-15 6:52
staffSean Ewington5-Mar-15 6:52 
GeneralRe: emmm.... how can...? Pin
Nelek6-Mar-15 8:29
protectorNelek6-Mar-15 8:29 
AnswerRe: emmm.... how can...? Pin
Keith Barrow5-Mar-15 2:35
professionalKeith Barrow5-Mar-15 2:35 
GeneralRe: emmm.... how can...? Pin
Nelek5-Mar-15 6:38
protectorNelek5-Mar-15 6:38 
GeneralRe: emmm.... how can...? Pin
Keith Barrow5-Mar-15 22:08
professionalKeith Barrow5-Mar-15 22:08 
GeneralRe: emmm.... how can...? Pin
Nelek6-Mar-15 8:29
protectorNelek6-Mar-15 8:29 
AnswerRe: emmm.... how can...? Pin
Sean Ewington5-Mar-15 4:12
staffSean Ewington5-Mar-15 4:12 
GeneralRe: emmm.... how can...? Pin
Nelek5-Mar-15 6:39
protectorNelek5-Mar-15 6:39 
QuestionArticle was been published as tip ? Pin
DiponRoy4-Mar-15 8:17
DiponRoy4-Mar-15 8:17 
AnswerRe: Article was been published as tip ? Pin
Sean Ewington4-Mar-15 8:25
staffSean Ewington4-Mar-15 8:25 
GeneralRe: Article was been published as tip ? Pin
DiponRoy4-Mar-15 8:34
DiponRoy4-Mar-15 8:34 
GeneralRe: Article was been published as tip ? Pin
Pete O'Hanlon4-Mar-15 8:53
mvePete O'Hanlon4-Mar-15 8:53 
GeneralRe: Article was been published as tip ? Pin
DiponRoy4-Mar-15 9:43
DiponRoy4-Mar-15 9:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.