Galaxy Pledges
Vuoi reagire a questo messaggio? Crea un account in pochi click o accedi per continuare.

Galaxy PledgesAccedi

Modifiche Forum - Parte Grafica

power_settings_newAccedi per rispondere

descriptioncomebutta - Modifiche Forum - Parte Grafica EmptyModifiche Forum - Parte Grafica

more_horiz
1. Avatar: per eventuali modifiche a testo status "Online/Offline" ed abbellire

2. Editare sfondo e bordi [CODE] e [SPOILER]

3. Abbellire post

4. Codici CSS

5. ]Palette personalizzate

6. Editare stile [CODE]

7. Problema grafico pulsante reputazione

8. Problema quando si invia [CODE] attraverso edit rapido

9. Sistemare problema grafico con @tags a prima linea nel post (si mangia parte superiore)

Ultima modifica di Admin il Sab Dic 05, 2020 7:08 am - modificato 12 volte.

descriptioncomebutta - Modifiche Forum - Parte Grafica EmptyRe: Modifiche Forum - Parte Grafica

more_horiz

Codice:

fgbf

_________________
comebutta - Modifiche Forum - Parte Grafica NTHV9Qp

descriptioncomebutta - Modifiche Forum - Parte Grafica EmptyRe: Modifiche Forum - Parte Grafica

more_horiz
[quote='Admin@Admin']skin == "default" || skin == "") {
$.getScript("https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js");
} else {
$.getScript("https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?skin=" skin);[/quote]

descriptioncomebutta - Modifiche Forum - Parte Grafica EmptyRe: Modifiche Forum - Parte Grafica

more_horiz
[quote='Admin@Admin'][/quote]

descriptioncomebutta - Modifiche Forum - Parte Grafica EmptyRe: Modifiche Forum - Parte Grafica

more_horiz
https://help.forumotion.com/t153344-tutorial-cite-specific-text

descriptioncomebutta - Modifiche Forum - Parte Grafica EmptyRe: Modifiche Forum - Parte Grafica

more_horiz
https://help.forumotion.com/t155366-widgets-for-categories-and-posts

descriptioncomebutta - Modifiche Forum - Parte Grafica EmptyRe: Modifiche Forum - Parte Grafica

more_horiz
https://help.forumotion.com/t155207-mobile-pagination-go-to-first-last-page

descriptioncomebutta - Modifiche Forum - Parte Grafica EmptyRe: Modifiche Forum - Parte Grafica

more_horiz
https://help.forumotion.com/t153032-watch-unwatch-topics-without-changing-the-page

descriptioncomebutta - Modifiche Forum - Parte Grafica EmptyRe: Modifiche Forum - Parte Grafica

more_horiz
https://help.forumotion.com/t148604-synceditor-a-new-way-to-post

descriptioncomebutta - Modifiche Forum - Parte Grafica EmptyRe: Modifiche Forum - Parte Grafica

more_horiz
https://help.forumotion.com/t141875-chatbox-smile-s-window-integrated-into-the-chat-window

descriptioncomebutta - Modifiche Forum - Parte Grafica EmptyRe: Modifiche Forum - Parte Grafica

more_horiz
@Admin

descriptioncomebutta - Modifiche Forum - Parte Grafica EmptyRe: Modifiche Forum - Parte Grafica

more_horiz
@the gamer #dapaura

Ultima modifica di Admin il Mer Dic 02, 2020 6:40 pm - modificato 1 volta.

_________________
comebutta - Modifiche Forum - Parte Grafica NTHV9Qp

descriptioncomebutta - Modifiche Forum - Parte Grafica EmptyRe: Modifiche Forum - Parte Grafica

more_horiz

@Admin @the gamer @TheGamer @Zuko

descriptioncomebutta - Modifiche Forum - Parte Grafica EmptyRe: Modifiche Forum - Parte Grafica

more_horiz
#dapaura #tuttook #comebutta

descriptioncomebutta - Modifiche Forum - Parte Grafica EmptyRe: Modifiche Forum - Parte Grafica

more_horiz

Codice:

/*[size=12][/size]
* -- Code Highlight Select --[size=12][/size]
* Version: 1.0 EN (2018-03-15)[size=12][/size]
* Author: Wecoc[size=12][/size]
* Description: New BBCode to insert codes by lang[size=12][/size]
* Info: https://github.com/google/code-prettify[size=12][/size]
*/[size=12][/size]
 [size=12][/size]
$(function() {[size=12][/size]
 [size=12][/size]
  /*--------------------- CONFIGURATION ---------------------*/[size=12][/size]
 [size=12][/size]
  // Define your version.[size=12][/size]
  // 0: phpBB2, 1: phpBB3, 2: punBB, 3: Invision, 4: modernBB[size=12][/size]
  var version = 1,[size=12][/size]
 [size=12][/size]
  // Set the skin for your printed code, these are the available skins:[size=12][/size]
  //       default, desert, sunburst, sons-of-obsidian, doxy[size=12][/size]
  // Or you can make your custom skin using CSS.[size=12][/size]
  // For more info: https://rawgit.com/google/code-prettify/master/styles/index.html[size=12][/size]
 [size=12][/size]
  skin = "default",[size=12][/size]
 [size=12][/size]
  // Display line numbers[size=12][/size]
  linenums = true,[size=12][/size]
 [size=12][/size]
  // Display all line numbers, or only 5, 10, 15...[size=12][/size]
  linenums_all = true,[size=12][/size]
 [size=12][/size]
  // Set here the texts to be displayed[size=12][/size]
  lang = {[size=12][/size]
    code:    "Code",[size=12][/size]
    line:    "Start line (optional)",[size=12][/size]
    insert:    "insert",[size=12][/size]
    tooltip:    "Pretty Code"[size=12][/size]
  },[size=12][/size]
 [size=12][/size]
  /* Here you define the languages you want to be selected in your forum,[size=12][/size]
  I setted all by default, just delete the ones you don't need.[size=12][/size]
  The first column is the hljs value (please don't change), the second is the[size=12][/size]
  name it will be displayed in the forum (you can change it if you want) */[size=12][/size]
  languages = {[size=12][/size]
    "apollo":   "Apollo",[size=12][/size]
    "bsh":    "Bash",[size=12][/size]
    "basic":   "Basic",[size=12][/size]
    "c":    "C",[size=12][/size]
    "cc":    "CC",[size=12][/size]
    "clj":   "Clojure",[size=12][/size]
    "cpp":    "CPP",[size=12][/size]
    "cs":    "CS",[size=12][/size]
    "csh":   "CSH",[size=12][/size]
    "css":    "CSS",[size=12][/size]
    "cv":   "CV",[size=12][/size]
    "cyc":   "CYC",[size=12][/size]
    "dart":   "Dart",[size=12][/size]
    "erlang":   "Erlang",[size=12][/size]
    "go":   "Go",[size=12][/size]
    "hs":   "Haskell",[size=12][/size]
    "htm":   "HTM",[size=12][/size]
    "html":   "HTML",[size=12][/size]
    "java":   "Java",[size=12][/size]
    "js":   "JavaScript",[size=12][/size]
    "tex":   "LaTeX",[size=12][/size]
    "lasso":   "Lasso",[size=12][/size]
    "llvm":   "LLVM",[size=12][/size]
    "logtalk":   "Logtalk",[size=12][/size]
    "lua":   "Lua",[size=12][/size]
    "m":   "Makefile",[size=12][/size]
    "matlab":   "MATLAB",[size=12][/size]
    "mumps":   "Mumps",[size=12][/size]
    "mxml":   "MXML",[size=12][/size]
    "n":   "Nemerle",[size=12][/size]
    "pascal":   "Pascal",[size=12][/size]
    "perl":   "Perl",[size=12][/size]
    "pl":   "PL",[size=12][/size]
    "pm":   "PM",[size=12][/size]
    "py":   "Python",[size=12][/size]
    "r":   "R",[size=12][/size]
    "rd":   "RD",[size=12][/size]
    "rb":   "Ruby",[size=12][/size]
    "rust":   "Rust",[size=12][/size]
    "scala":   "Scala",[size=12][/size]
    "lisp":   "Scheme",[size=12][/size]
    "sh":   "SH",[size=12][/size]
    "ml":   "SML",[size=12][/size]
    "sql":   "SQL",[size=12][/size]
    "swift":   "Swift",[size=12][/size]
    "tcl":   "TCL",[size=12][/size]
    "vb":   "Visual Basic",[size=12][/size]
    "vhdl":   "VHDL",[size=12][/size]
    "wiki":   "Wiki",[size=12][/size]
    "xhtml":   "XHTML",[size=12][/size]
    "xml":   "XML",[size=12][/size]
    "xq":   "XQ",[size=12][/size]
    "xsl":   "XSL",[size=12][/size]
    "yaml":   "YAML"[size=12][/size]
  };[size=12][/size]
 [size=12][/size]
  /*------------------ END OF CONFIGURATION ------------------*/[size=12][/size]
 [size=12][/size]
  // Load the Prettify script[size=12][/size]
  if (skin == "default" || skin == "") {[size=12][/size]
    $.getScript("https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js");[size=12][/size]
  } else {[size=12][/size]
    $.getScript("https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?skin=" + skin);[size=12][/size]
  }[size=12][/size]
 [size=12][/size]
  // Draw code lines[size=12][/size]
  if (linenums && linenums_all) {[size=12][/size]
    $('head').append('<style type="text/css">li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8,li.L9{list-style-type: decimal !important;}');[size=12][/size]
  }[size=12][/size]
 [size=12][/size]
  $.each(languages, function(tag, value) {[size=12][/size]
    var code_tag = 'code';[size=12][/size]
    if (version == 0) { code_tag = '.cont_code' };[size=12][/size]
    $('table.code-' + tag + ' ' + code_tag).each(function(i, block) {[size=12][/size]
      // Set starting line[size=12][/size]
      var l = '1';[size=12][/size]
      var td = $(block).parents('td').attr('id');[size=12][/size]
      if (td) { l = td.match(/line--(\d*)/)[1]; }[size=12][/size]
      // Print the code[size=12][/size]
      $(block).wrapInner('<pre class="prettyprint ' + (linenums ? 'linenums:' + l + ' ' : '') + 'lang-' + tag + '" />');[size=12][/size]
      // Set table width to 100% of the post (bugfix)[size=12][/size]
      $('head').append('<style type="text/css">table.code-' + tag + '{width: 100%;}');[size=12][/size]
      if (version == 0) { $('head').append('<style type="text/css">dl.codebox{width: 100%;}'); }[size=12][/size]
      // Set the code padding to 0 (bugfix)[size=12][/size]
      $('head').append('<style type="text/css">pre.prettyprint{ margin: 0; }');[size=12][/size]
      // Change "Code:" by the name of the current code language[size=12][/size]
      var dt = $(block).parents('dl.codebox')[0].firstChild;[size=12][/size]
      if (version == 0) {[size=12][/size]
        dt.innerHTML = '<dt><span class="genmed"><b>' + value + ':</b></span></dt>'[size=12][/size]
      } else {[size=12][/size]
        dt.innerHTML = value + ':';[size=12][/size]
      }[size=12][/size]
    });[size=12][/size]
  });[size=12][/size]
 [size=12][/size]
  // Set new BBCode icon[size=12][/size]
  if (!$.sceditor) return;[size=12][/size]
  $('head').append($('<style>', {[size=12][/size]
      text: '.sceditor-button-codepretty div{background-image:url(https://i.servimg.com/u/f62/19/86/96/38/code_i10.png)!important}'[size=12][/size]
  }));[size=12][/size]
 [size=12][/size]
  $.sceditor.command.set('codepretty', {[size=12][/size]
    dropDown : function(editor, caller, callback) {[size=12][/size]
      // Create code select[size=12][/size]
      var a = document.createElement('DIV'), b = document.createElement('SELECT');[size=12][/size]
      a.innerHTML = '<label unselectable="on">' + lang.code + '</label>';[size=12][/size]
      for (var i in languages) {[size=12][/size]
        var o = document.createElement('OPTION');[size=12][/size]
        o.value = i;[size=12][/size]
        o.innerHTML = languages[i];[size=12][/size]
        b.append(o);[size=12][/size]
      }[size=12][/size]
      b.style.width = "100%";[size=12][/size]
      b.style.marginBottom = "8px";[size=12][/size]
      a.append(b);[size=12][/size]
      editor.createDropDown(caller, 'codepretty', a);[size=12][/size]
      // Create line number input[size=12][/size]
      var c = document.createElement('DIV');[size=12][/size]
      if (linenums) {[size=12][/size]
        c.innerHTML = '<label unselectable="on">' + lang.line + '</label>';[size=12][/size]
        var i = document.createElement('INPUT');[size=12][/size]
        i.type = "text";[size=12][/size]
        i.defaultValue = "1";[size=12][/size]
        c.append(i);[size=12][/size]
      }[size=12][/size]
      a.append(c);[size=12][/size]
      // Create insert button[size=12][/size]
      var d = document.createElement('DIV');[size=12][/size]
      d.innerHTML = '<input type="button" class="button" value="' + lang.insert + '">';[size=12][/size]
      d.onclick = function() {[size=12][/size]
        var code = $(b)[0].value, line = '1';[size=12][/size]
        if (linenums) { line = $(i)[0].value; if (line == '' || line < 1) { line = '1' }; }[size=12][/size]
        callback(code, line);[size=12][/size]
        editor.closeDropDown(true);[size=12][/size]
        return false;[size=12][/size]
      };[size=12][/size]
      a.append(d);[size=12][/size]
    },[size=12][/size]
    // wysiwyg[size=12][/size]
    exec : function(caller) {[size=12][/size]
      var editor = this;[size=12][/size]
      $.sceditor.command.get('codepretty').dropDown(editor, caller, function(code, line) {[size=12][/size]
        if (parseInt(line) > 1) {[size=12][/size]
          editor.insert('[table class="code-' + code + '"][tr][td id="line--' + line + '"][code]',[size=12][/size]
                        '[/code][/td][/tr][/table]', true, true, true);[size=12][/size]
        } else {[size=12][/size]
          editor.insert('[table class="code-' + code + '"][tr][td][code]',[size=12][/size]
                        '[/code][/td][/tr][/table]', true, true, true);[size=12][/size]
        }[size=12][/size]
      });[size=12][/size]
    },[size=12][/size]
 [size=12][/size]
    // source[size=12][/size]
    txtExec : function(caller) {[size=12][/size]
      var editor = this;[size=12][/size]
      $.sceditor.command.get('codepretty').dropDown(editor, caller, function(code, line) {[size=12][/size]
        if (parseInt(line) > 1) {[size=12][/size]
          editor.insert('[table class="code-' + code + '"][tr][td id="line--' + line + '"][code]',[size=12][/size]
                        '[/code][/td][/tr][/table]', true, true, true);[size=12][/size]
        } else {[size=12][/size]
          editor.insert('[table class="code-' + code + '"][tr][td][code]',[size=12][/size]
                        '[/code][/td][/tr][/table]', true, true, true);[size=12][/size]
        }[size=12][/size]
      });[size=12][/size]
    },[size=12][/size]
    tooltip : lang.tooltip;[size=12][/size]
  });[size=12][/size]
  toolbar = toolbar.replace(/code,/,'code,codepretty,'); // add the button to the toolbar[size=12][/size]
});

descriptioncomebutta - Modifiche Forum - Parte Grafica EmptyRe: Modifiche Forum - Parte Grafica

more_horiz
privacy_tip Permessi in questa sezione del forum:
Non puoi rispondere agli argomenti in questo forum.
power_settings_newAccedi per rispondere