CSSlist with background editor

New version of CSSlist with background editor
  • Selector images: the image path is automatically converted to relative on the style sheet being edited
  • Color Picker: click on the image to add the color of the pixel under the cursor to the background-color
  • X and Y position of the background: previews background position, if we use units of measurement only works with ‘%’ or pixels ‘px’, we can increase or decrease by one the value of text field using the left and right keys of the keyboard

Download

cssList0eBgEditor.rar

cssList with color mixer

Added to cssList colorMixer, accessible via the button below Apply or directly from the editing grid if we have associated the property that we are editing with the color mixer.

How to link a css property with the color mixer

In the file “notepad++ directory\plugins\cssList\cssProperties.txt” add to the property we want to link the following: <color>. For example border-color would be as follows: border-color:<color>

Download

cssListBeta0dColorMixer.rar

Notepad++ CSSList: Adapting cssList to your needs

To improve productivity by using cssList for notepad++ should make some changes to the files in the directory cssList (plugin directory notepad++\cssList)
  • cssProperties.txt

    This text file is the one that generates the list displayed by clicking on the first column of the properties of the current selector, each value will go into a line, optionally followed by a colon (:) and an identifier list of possible values defined in cssLists.txt. We can delete the properties that we not use, for example if we use the shorthand border instead of border-style, border-width and border-color, you can delete these three properties from cssProperties.txt thus limiting the number of values shown in the listing.
  • cssLists.txt

    Some values for CSS properties are lists of which only we can choose an element, for example display can choose between none, box, block, flex etc … or border-style between none, hidden, dotted, dashed etc …. For these cases we can create a variable in cssLists.txt file and link it to a property in the file cssProperties.txt. The variable name must start with the prefix “list” followed by the name you want, the values for the list will then sign “:” (colon) and are separated by the “|”. For example, the list of values for background-attachment would be as follows:
     listBgAttach:scroll|fixed|inherit
    . To link it to the background-attachment property in cssProperties.txt would put after the name of the property the name of the variable colon-separated list:
    background-attachment:listBgAttach
  • cssGroups.txt

    In this file define the relationships between properties that will have the same value, usually in properties that do not follow the standard and have different property names for each browser, an example is border-radius, for compatibility we have to define our style sheet as border-radius, -moz-border-radius and -webkit-border-radius, the three with the same value. For that to change one of the values are updated in the other two properties cssGroups.txt add a line with all the names linked by a “+”, in this case:
    border-radius+-moz-border-radius+-webkit-border-radius

Notepad++ plugin: cssList beta0b

Changes in this version

    • In this new version adds two buttons to navigate between current selector matches through the document, the same selector can appear in the different media (@media print, screen etc…).
  • Added a dropdown to filter out the list of selectors by media type (@ media screen, print etc …)
  • Added checkbox to avoid deleting line breaks and white space to apply any changes made to the properties of the selector
  • Download cssListBeta0b.rar

    Gimp, webSplit new version

    New options

    This new version of WebSplit allows greater control over every sector of the image we want to cut:
    • The file format for save the croped trimmed sector, to choose between gif, jpg and png
    • The HTML source code associated with the sector that allows to use wildcards to be replaced on exporting all sectors

    Using the script

    Once you create a rectangular path select it and click the right mouse button to display the context menu of Paths. If you have successfully installed the script will see between the options in the Tools section “WebSplit export editor”. You can see an example in the following video:

    Details sector window

    1. 1
      Name for the image: this sector is saved with the name you put in this text field with the extension of the selected file type [2]. For example, if we wrote “topBorder” and select as type “gif”, this image will be saved as “topBorder.gif”
    2. 2
      File type for the image: file format in which we want to save the image. Depending on what you select will change the following option [3].
    3. 3
      Extra options: change depending on the file format selected, affect the quality with which will save the image or if it will be an animated gif or not
    4. 4
      Wildcards for the html: we can use a series of characters in our html code will be replaced by current sector relative values, for example the width or height of the sector, its position relative to the entire image etc. All numerical values are returned as integers. The wildcards are:
          • {w}: width sector
          • {h}: height sector
          • {t}: Upper position crop sector over the full image
          • {l}: Left position crop sector over the full image
          • {n}: full name including path and extension image
          • {e}: Extension we have selected for this field
          • {i}: Name that we used for the image
        None of the measure values return ‘px’, is a value that we have to add in the html code. Clicking the Add button adds the selected wildcard where we have the cursor in the text field “HTML code” [6]
      • 5
        Html templates: drop down html code snippets used with his corresponding wildcards. Clicking the Add button adds the selected template where we have the cursor in the text field “HTML code” [6]
      • 6
        HTML Code: write the text in this field will be added to the HTML file you created at the end of the process
    Once all sectors of our image cropping call the main plugin in Filtros > Paths > Web Split

    Download

    webSplit_2013_04_26

    Gimp, webSplit, split the image using Paths

    WebSplit is a python script to split the image using Paths. Use the coordinates of visible Paths to crop the image, each image is saved with the name of the path, and it also creates an HTML file that can be used to copy the x and y coordinates of the image and the width and height in pixels.

    Using webSplit

    Create a rectangular selection for each part of the image you want to crop and convert to Path ( menu Select \ To path or from the window of Paths press the lower button Selection to path). Rename the Path with the name you want for the image, if you turn off the visibility of the path not taken into account when running the script.
    Run the script from the menu Filters\Paths\Web split … , the script only requires that you indicate the folder where you want to save images and html sample

    Installation

    Download the .py file and save it to any folder of scripts. To figure out what folders assigned from the Edit menu, click Preferences, in the dialog box that appears select the last option, Folders, and select display options Plugins, to the right is a list of folders where we can save the script.

    Download the zip file

    split_2013_02_12 Sample usage: http://www.youtube.com/watch?v=bGog4rtRUOY Creative Commons Licence
    This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

    povray: regexp to clean the code using notepad++

    Another regular expression to clean povray code with notepad++, replacing color formats “red num green num blue num” to “rgb<num,num,num>”. In the text field Find what: copy and paste the expression:
    (red\s*)([0-9]*.{0,1}[0-9]*)(\s*green\s*)([0-9]*.{0,1}[0-9]*)(\s*blue\s*)([0-9]*.{0,1}[0-9]*)
    And in Replace with::
    rgb<\2,\4,\6>
    Pressing Replace All clean it the code making it more compact and readable

    Povray: clean code exported by inkScape using notepad++

    When exporting paths from inkscape to blender the resulting file can be very large. We can reduce the file size by removing unused decimal zeros, eg “12.00000” would become “12”. We can use regular expressions notepad++ to do. Open the .pov file in notepad++ and in the Replace dialog box (Ctrl+H) select the Regular expression np_regexp_pov_en In the text field Find what: copy and paste the expression:
    (\.(?:\d*[1-9])?)(0+)(,|>|;)
    And in Replace with::
    \1\3
    Pressing Replace All clean it useless zeros code