• StumbleUpon
  • Twitter
  • Facebook
  • MySpace
  • email
Notificacion de nuevas reglas!
1. Para los titulos. Postear en esta estructura: [contenido(curso,tuto,etc)][lenguaje o app(JS, PHP, PS, HTML, etc)] [descarga si es una app(RS, HF, MU, MD, etc)] Titulo del post.
2. Para las tags. Postear las tags de acuerdo a la categoria y pedimos que por favor no incluyan nombres de usuarios en las tags como: jadielh, hjalmarcito, raul, etc...
[TUTO]-Utilizando Highlight para Codigos
  • Hola amigos aqui les explicare como mostrar un codigo fuente de algun lenguaje de programacion.
    Lo primero que debemos hacer es colocar las etiquetas: <pre>(para abrir) y </pre>(para cerrar), despues le indicamos que lenguaje utilizaremos colocando: "lang" dentro de la primera etiqueta, ej.:
    <pre lang="...">y</pre>
    ...Y colocamos dentro de las comilolas que indican "lang" el lenguaje de programacion que utilizaremos...
    Aqui unos ejemplos:

    UTILLIZANDO CSS
    body {
    background:#ffffff url(image.png) fixed center center; margin:0px; padding:0px;
    }


    UTILIZANDO LUA
    function OpenDraw(ADrawPicLocation,StartP,EndP)
    local cLine = "";
    cLine = MainPic.." ".."Add".." "..ADrawPicLocation;
    if StartP and EndP then
    cLine = cLine.." "..StartP.." "..EndP
    end<br> RunDMT (cLine);
    Audio.Load(CHANNEL_NARRATION, "AutoPlay\\Audio\\Keys.ogg", true, false);
    return true
    end


    UTILIZANDO PHP

    <?php
    include("site.html");
    ?>


    UTILIZANDO BASIC
    Dim u As String
    u = nav.Text
    me.Text = u


    UTILIZANDO SQL
    INSERT INTO TABLE_NAME (column1, column2, column3,...)
    VALUES (value1, value2, value3,...)



    ULTILIZANDO ASP.NET
    <script runat="server">
    Sub Page_Load
    link1.HRef="http://www.w3schools.com"
    End Sub
    </script>
     
    <html>
    <body>
     
    <form runat="server">
    <a id="link1" runat="server">Visit W3Schools!</a>
    </form>
    </body>
    </html>




    Otros lenguajes:
    HTML = html
    PHP = php
    SQL = sql
    BASIC = basic
    Lua = lua
    ASP = asp
    ASP.NET = aspx
    XML = xml
    JS = javascript
    AJS = actionscript

    etc...

    *Nota: Como puesdes ver dentro del código aparecen unas etiquetas "<br>" pero no te preocupes que se crean automaticamente para identificar una linea abajo en HTML...

Bienvenido, Visitante!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with OpenID Sign In with Google Sign In with Twitter

Inicie Conexión Regístrese!

Tagged

Actividad reciente