Autor Tema: Syntax Highlighter para el foro  (Leído 6436 veces)

0 Usuarios y 1 Visitante están viendo este tema.

E N T E R

  • Petabyte
  • ******
  • Mensajes: 1062
  • Reputación: +57/-13
  • www.enterpy.com
    • Ver Perfil
    • www.enterpy.com
Syntax Highlighter para el foro
« en: Octubre 17, 2011, 12:05:58 pm »
Se le puede intregrar esta herramienta al foro? Seria muy bueno mas prolijo el codigo asi. Es solo una sugerencia.

http://www.simplemachines.org/community/index.php?topic=290024.0

Aca Link de descarga
http://code.google.com/p/syntaxhighlighter/downloads/list

Saludos!!!
CIBER GOOGLE - CONCEPCIÓN PARAGUAY
www.enterpy.com
Primera regla de la programacion, para que vas a hacerlo complicado si lo puedes hacer sencillo

seba123neo

  • Terabyte
  • *****
  • Mensajes: 763
  • Reputación: +88/-5
    • Ver Perfil
Re:Syntax Highlighter para el foro
« Respuesta #1 en: Octubre 17, 2011, 12:27:52 pm »
si, yo ya lo habia pedido aca:

Sobre BBCodes

LeandroA

  • Administrador
  • Petabyte
  • *****
  • Mensajes: 1128
  • Reputación: +151/-8
    • Ver Perfil
Re:Syntax Highlighter para el foro
« Respuesta #2 en: Octubre 18, 2011, 02:10:31 am »
Hola ya intente instalar la SyntaxHighlighter_1-0.zip pero dice no ser compatible con esta versión del foro, la verdad ya me canse de buscar sin éxito, si alguno sabe de alguna posta, y como instalarlo se agradece.

« última modificación: Octubre 18, 2011, 02:13:10 am por LeandroA »

R@MI

  • Visitante
Re:Syntax Highlighter para el foro
« Respuesta #3 en: Octubre 21, 2011, 07:16:07 pm »
EJEM:

mira en mi foro (sin intencion de hacer SPAM)


www.gmks.com.ar en la seccion de programacion.

EDIT:
http://custom.simplemachines.org/mods/index.php?mod=3070

Si no lo pueden instalar, aganme admin xD
« última modificación: Octubre 21, 2011, 07:29:49 pm por Mr. X »

LeandroA

  • Administrador
  • Petabyte
  • *****
  • Mensajes: 1128
  • Reputación: +151/-8
    • Ver Perfil
Re:Syntax Highlighter para el foro
« Respuesta #4 en: Octubre 22, 2011, 01:13:34 am »
Hola bien descargue la que me dijo Mr. x
http://custom.simplemachines.org/mods/index.php?mod=3070
despues intente instalarlo como un pack, pero no me lo permitio, entoses me fije en la ayuda, la cual era para la 2.0 pero igual seguí los paso
http://custom.simplemachines.org/mods/index.php?action=parse;mod=3070;attach=180424;smf_version=2.0
modifique todos los archivos que indican (hice bakup), luego tiro un error, asi que copie del .Zip (geshi (es la carpeta con todos los lenguages de programacion) y geshi.php) y las pegue en  /public_html/foro/Sources y bien funciono a medias ya que se muestra asi

Código: (vb) [Seleccionar]
Option Explicit

' ------------------------------------------------------
' Autor:    Leandro I. Ascierto
' Fecha:    17 de Julio de 2010
' Web:      www.leandroascierto.com.ar
' ------------------------------------------------------

Dim cMenuImage As clsMenuImage



por lo que vi en el foro de Mr. X debería verse asi http://gmks.com.ar/index.php/topic,24.0.html?PHPSESSID=d6c3b3f0daa8705eb2bb28f3ae5d0dae

Que estoy haciendo mal?, orientame asi doy por culminado esto.
« última modificación: Octubre 22, 2011, 01:25:40 am por LeandroA »

R@MI

  • Visitante
Re:Syntax Highlighter para el foro
« Respuesta #5 en: Octubre 29, 2011, 09:07:55 pm »
Ahora no puedo xq estoy desde el celu, pero cuando me conecte, t ayudo.

Primero borra el paquete, despues ve a administracion->paquetes
lo subes, pero no lo instales.
Regresas a el admin de paketes, y abajo hay un link ke dice avanzado, lo presionas, y sale una caja de texto ke dice SMF 2.0.1 y lo cambias a SMF 2.0 Y haces click en aplicar, lo instalas, y de nuevo en donde pusiste SMF 2.0 pones SMF 2.0.
Si no podes, haceme admin, y te lo soluciono el viernes

R@MI

  • Visitante
Re:Syntax Highlighter para el foro
« Respuesta #6 en: Noviembre 04, 2011, 06:46:49 pm »
UF!
lo instale el lunes, pero recien ahora me puedo conectar de nuevo xD


EDITO: Un tuto para usar GeSHi
http://codebirth.com/index.php?topic=81.0

Se usa asi:

[code=VB] Código de VB [/code]


Y queda asi:

Código: (VB) [Seleccionar]
Option Explicit

Private Const FOREGROUND_BLUE = &H1
Private Const FOREGROUND_GREEN = &H2
Private Const FOREGROUND_RED = &H4
Private Const BACKGROUND_BLUE = &H10
Private Const BACKGROUND_GREEN = &H20
Private Const BACKGROUND_RED = &H40
Private Const BACKGROUND_INTENSITY = &H80&
Private Const BACKGROUND_SEARCH = &H20&
Private Const FOREGROUND_INTENSITY = &H8&
Private Const FOREGROUND_SEARCH = (&H10&)
Private Const ENABLE_LINE_INPUT = &H2&
Private Const ENABLE_ECHO_INPUT = &H4&
Private Const ENABLE_MOUSE_INPUT = &H10&
Private Const ENABLE_PROCESSED_INPUT = &H1&
Private Const ENABLE_WINDOW_INPUT = &H8&
Private Const ENABLE_PROCESSED_OUTPUT = &H1&
Private Const ENABLE_WRAP_AT_EOL_OUTPUT = &H2&
Private Const STD_OUTPUT_HANDLE = -11&
Private Const STD_INPUT_HANDLE = -10&
Private Const STD_ERROR_HANDLE = -12&
Private Const INVALID_HANDLE_VALUE = -1&
Private Declare Function AllocConsole Lib "kernel32" () As Long
Private Declare Function FreeConsole Lib "kernel32" () As Long
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
Private Declare Function GetStdHandle Lib "kernel32" (ByVal nStdHandle As Long) As Long
Private Declare Function WriteConsole Lib "kernel32" Alias "WriteConsoleA" (ByVal hConsoleOutput As Long, lpBuffer As Any, ByVal nNumberOfCharsToWrite As Long, lpNumberOfCharsWritten As Long, lpReserved As Any) As Long
Private Declare Function ReadConsole Lib "kernel32" Alias "ReadConsoleA" (ByVal hConsoleInput As Long, ByVal lpBuffer As String, ByVal nNumberOfCharsToRead As Long, lpNumberOfCharsRead As Long, lpReserved As Any) As Long
Private Declare Function SetConsoleTextAttribute Lib "kernel32" (ByVal hConsoleOutput As Long, ByVal wAttributes As Long) As Long
Private Declare Function SetConsoleTitle Lib "kernel32" Alias "SetConsoleTitleA" (ByVal lpConsoleTitle As String) As Long
Private hConsoleOut As Long, hConsoleIn As Long, hConsoleErr As Long
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private sSource As String

Si quieren remarcar o destacar lineas del codigo, pueden usar:


[code=VB,6,9,10][/code]


Y queda:

Código: (VB,6,9,10) [Seleccionar]
Option Explicit

Private Const FOREGROUND_BLUE = &H1
Private Const FOREGROUND_GREEN = &H2
Private Const FOREGROUND_RED = &H4
Private Const BACKGROUND_BLUE = &H10
Private Const BACKGROUND_GREEN = &H20
Private Const BACKGROUND_RED = &H40
Private Const BACKGROUND_INTENSITY = &H80&
Private Const BACKGROUND_SEARCH = &H20&
Private Const FOREGROUND_INTENSITY = &H8&
Private Const FOREGROUND_SEARCH = (&H10&)
Private Const ENABLE_LINE_INPUT = &H2&
Private Const ENABLE_ECHO_INPUT = &H4&
Private Const ENABLE_MOUSE_INPUT = &H10&
Private Const ENABLE_PROCESSED_INPUT = &H1&
Private Const ENABLE_WINDOW_INPUT = &H8&
Private Const ENABLE_PROCESSED_OUTPUT = &H1&
Private Const ENABLE_WRAP_AT_EOL_OUTPUT = &H2&
Private Const STD_OUTPUT_HANDLE = -11&
Private Const STD_INPUT_HANDLE = -10&
Private Const STD_ERROR_HANDLE = -12&
Private Const INVALID_HANDLE_VALUE = -1&
Private Declare Function AllocConsole Lib "kernel32" () As Long
Private Declare Function FreeConsole Lib "kernel32" () As Long
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
Private Declare Function GetStdHandle Lib "kernel32" (ByVal nStdHandle As Long) As Long
Private Declare Function WriteConsole Lib "kernel32" Alias "WriteConsoleA" (ByVal hConsoleOutput As Long, lpBuffer As Any, ByVal nNumberOfCharsToWrite As Long, lpNumberOfCharsWritten As Long, lpReserved As Any) As Long
Private Declare Function ReadConsole Lib "kernel32" Alias "ReadConsoleA" (ByVal hConsoleInput As Long, ByVal lpBuffer As String, ByVal nNumberOfCharsToRead As Long, lpNumberOfCharsRead As Long, lpReserved As Any) As Long
Private Declare Function SetConsoleTextAttribute Lib "kernel32" (ByVal hConsoleOutput As Long, ByVal wAttributes As Long) As Long
Private Declare Function SetConsoleTitle Lib "kernel32" Alias "SetConsoleTitleA" (ByVal lpConsoleTitle As String) As Long
Private hConsoleOut As Long, hConsoleIn As Long, hConsoleErr As Long
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private sSource As String
« última modificación: Noviembre 04, 2011, 07:00:52 pm por Mr. X »

YAcosta

  • Moderador Global
  • Exabyte
  • *****
  • Mensajes: 2853
  • Reputación: +160/-38
  • Daddy de Qüentas y QüeryFull
    • Ver Perfil
    • Personal
Re:Syntax Highlighter para el foro
« Respuesta #7 en: Noviembre 04, 2011, 07:03:43 pm »
Excelente!!!
Me encuentras en YAcosta.com

E N T E R

  • Petabyte
  • ******
  • Mensajes: 1062
  • Reputación: +57/-13
  • www.enterpy.com
    • Ver Perfil
    • www.enterpy.com
Re:Syntax Highlighter para el foro
« Respuesta #8 en: Noviembre 04, 2011, 08:55:57 pm »
Espectacular Mr. X, muchas gracias asi queda mas lindo el foro.
CIBER GOOGLE - CONCEPCIÓN PARAGUAY
www.enterpy.com
Primera regla de la programacion, para que vas a hacerlo complicado si lo puedes hacer sencillo

LeandroA

  • Administrador
  • Petabyte
  • *****
  • Mensajes: 1128
  • Reputación: +151/-8
    • Ver Perfil
Re:Syntax Highlighter para el foro
« Respuesta #9 en: Noviembre 04, 2011, 10:49:16 pm »
Se agradece a Mr. X por darle un punto final a este tema.  :D  esperemos que ante cualquier actualización no aya que reinstalarlo jeje.

R@MI

  • Visitante
Re:Syntax Highlighter para el foro
« Respuesta #10 en: Noviembre 07, 2011, 05:58:08 pm »
No es nada. Cualquier cosa por mi foro favorito  :-*