Excluding CF and Js commenting tags

I count the number of lines of code in the .cfm pages. But I want to exclude the lines between CF and Javascript comment tags during this operation.

I tried to replace the lines between the comment tags with an empty string as the below one.

For CF comments tags: < cfset filecontent = rereplacenocase (filecontent,"<!) ("[^ <] * >", "", "all") >

For Js comments tags: < cfset filecontent = rereplacenocase (filecontent, "/ * [^ <] * /","","all" ") >

But mostly the method above does not exclude the codes. can someone suggest an alternative method to achieve this.

The code worked for me below.

For CF comment: ', ' ', 'all') > '.

For .js comments:

Tags: ColdFusion

Similar Questions

  • Research and problem of Tags dialog box

    Hello

    I have problem with the research and marking dialog box. I have properly put tags implemented in my custom portal webcenter application. I can add/remove tags on the pages and I am able to navigate through the results using Tag Cloud. However research component dialog does not return no results when I search tags. There is an additional configuration required to get results of tag in the search dialog component? I would be grateful of any information that might help solve this problem.

    Thank you

    Adam

    You have configured Oracle SES?

    If this isn't the case, you will need to configure your WebCenter portal to use the default search adapter.

    Change adf-config. XML as follows:

    
    

    Set to "false" or comment tag properties.

    Kind regards.

  • CSS tab Menu comment tags?

    Is it possible to add CSS comment tags to my tab of the FAVORITES menu? Whenever I want to add comments to an external CSS document, I have to manually type / *... * /. It would be great if there was a button for CSS comment, as it is in HTML format, so I could just select the text I want to comment on, click a button, and it automatically wraps the CSS in comment tags.

    Thank you Murray, it's exactly what I was looking for. Guess I was looking in the wrong place.

  • Cannot restore recent bookmark tag, despite the recent and most popular tags restoration

    Hi there, I recently lost my "recent bookmarks" and "recent tags" my bookmarks file. I sought help on the forums and followed the advice to restore the smart bookmarks folder (ranging up to about: config, double-click on the link smartbookmarks, assigning a value of 0 and restart) and it brought back the tag 'most visited' on the toolbar (which I was happy not to do) and the recent "tags" on my menu of bookmarks (which again I don't want to not really) , he brought no "recent bookmarks", which is one I really want to!

    If anyone can help, I would be grateful.

    Thank you very much

    Anais

    Hello

    Thank you very much. When I tried to restore it previously (via subject: config suggest you), I had read somewhere that I have to right click on browser.places.smartBookmarksVersion and change the value from 7 to 0, which is what I did. Bringing the tag 'most visited' and recent tag, but not the recently marked with a bookmark.

    But I just followed your advice, via the link you gave, and rather than change the value to 0, I clicked and chose just "reset" and it has sorted them. I have my return recently marked with a bookmark label.

    Thanks again.

    Anais.

  • Why Firefox 25.0 does not show Google ads and Facebook comments and love. Make all other browsers.

    I just upgraded to 25.0 FireFox and I have problems of visualization of Google ads and Facebook comments and love on my site (wellfitstyle.com). All other browsers show Google adds comments in the right sidebar and Facebook and like below each post. Many people in Eastern Europe (where I am) using FireFox and I would like to know how this problem can be solved.

    TNX.

    Try Firefox Safe mode to see if the problem goes away. Safe mode is a troubleshooting mode, which disables most of the modules.

    (If you use it, switch to the default theme).

    • Under Windows, you can open Firefox 4.0 + in Safe Mode holding the key SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac, you can open Firefox 4.0 + in Safe Mode holding the key option key when starting Firefox.
    • Under Linux, you can open Firefox 4.0 + with leaving Firefox then go to your Terminal and running Safe Mode: firefox-safe-mode (you may need to specify the installation path of Firefox for example/usr/lib/firefox)
    • Or open the Help menu and click on the restart with the disabled... modules menu item while Firefox is running.

    Once you get the pop-up, simply select "" boot mode safe. "

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. To do this, please follow article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    The report please come back shortly.

  • Open the email and have a photo and a comment here - how can I get the photo as an attachment

    I want to send a Christmas card from our family with a comment him - but don't want to send it as an attachment - I have receipt of emails that when I open them the picture and the comment are there in the body of the e-mail - DO NOT want to send as an attached - any help is appreciated to gretly

    You then compose your message in HTML, and then use the Insert | Function of the image.  It would be useful to know to send you the program, but that's the gist of.
     
    Steve
     

    I want to send a Christmas card from our family with a comment him - but don't want to send it as an attachment - I have receipt of emails that when I open them the picture and the comment are there in the body of the e-mail - DO NOT want to send as an attached - any help is appreciated to gretly

  • can I exclude statistics and index both at the same time

    Hi people,

    I do big table re-organization, so my question is can I exclude statistics and index at the same time

    I am planing this activity as below, please advise me if I'm wrong.

    (1) create table xx_031114 in select * from xx;   (it's like the precautionary measures)

    (2) export the table xxx using its owner the user yy

    yy/passwd@tnsnames = DIRECTORY expdp export DUMPFILE = xx.dmp = xx LOGFILE = xx.log tables

    (3) to truncate the table or drop table

    SQL > truncate table xx;

    SQL > drop table xx;

    (4) import the table with metadata without statistics & index as below

    Impdp yy/passwd@tnsnames DIRECTORY = export statistical DUMPFILE = xx.dmp = xx = exclude TABLES, index CONTENT = METADATA_ONLY LOGFILE = imp_031114.log (import only meta data without statistics & index)


    Question 1: can I exclude the statistics and indexes at once?

    Impdp yy/passwd@tnsnames DIRECTORY = export of TABLES DUMPFILE = xx.dmp = xx CONTENT = exclude LOGFILE = imp_dataonly_031114.log index = DATA_ONLY (import data only without index)

    Impdp yy/passwd@tnsnames DIRECTORY = export of TABLES DUMPFILE = xx.dmp = xx include = index (import only indexes)

    2 question: can I import the indexes only as above?

    Thank you and best regards.

    Younus

    for your question: you use the exclude options separate to exclude indexes and statistics

    Question 2: directory of the user/password impdp dumpfile you_dir = your_dump = include = INDEX

    Hope this helps

    concerning

    Pravin

  • creation and assignment of tags in vCenter via vCO

    VMware is moving away from custom attributes and categories and tags.  Currently, vCO vCenter workflows for the creation of custom attributes, however, I found nothing on the automation of the creation and assignment of tags with virtual machines.

    Finally, I should mention the category via vCAC at the time of commissioning.  tag could be billing department as well as the response or if the tag exists (IE Engineering) and then he would associate the (engineering) tag to the category (dept billing).  However if the tag does not exist, then a new tag and associated with the virtual machine.

    thoughts?

    PowerShell commands

    Since version VMware PowerCLI 5.5R1 and until there are a number of commands for working with tags, such as:

    • Get - Tag
    • New-TagAssignment

    I had similar questions about the tags quite awhile (5.1 is released at the time).  I don't think I ever got a response.  In the meantime, you could create a wrapper for PowerCLI orders or make calls directly to the api.  A little messy but it would work.

  • Enable advanced tagging vs enable accessibility and reflow with tagged Adobe PDF

    Is anyone know the difference between these two parameters in the PDFMaker preferences?

    Enable advanced tagging vs enable accessibility and reflow with tagged Adobe PDF

    I can't find any information that distinguishes these two parameters are mutually exclusive. I am trying to decide what is the best when you create a PDF document that is signposted from MS Word. If someone has an idea, I would be very happy.

    "Advanced marking" is changing the way that some elements of the page are defined (table of cells, lines, boxes, etc.), who makes the most reliable conversion of "Visual" in PDF Acrobat forms fields. You must have the option "enable accessibility and reflow with tagged Adobe PDF" as well on, or tags are not created at all.

  • How to calculate the date fields while excluding Saturday and Sunday

    Hi, I use Jdeveloper 11.1.3.4

    I have an Oracle database and creates a table called holiday with 3 attributes:


    user (VARCHAR)

    (early)

    end (date)


    The idea is that you subtract the finish from the beginning and get a number of vacation days used. The thing is that the sum should exclude Saturday and Sunday.

    Any way to do it?
    /* Formatted on 6/1/2011 7:57:32 AM (QP5 v5.149.1003.31008) */
    WITH t AS (  SELECT id,
                        MAX (strt) strt,
                        MAX (finish) finish,
                        SUM (dys) days_off
                   FROM (SELECT id,
                                strt,
                                finish,
                                CASE
                                   WHEN TO_CHAR (dy, 'day') LIKE 'saturday%' THEN 0
                                   WHEN TO_CHAR (dy, 'day') LIKE 'sunday%' THEN 0
                                   ELSE 1
                                END
                                   dys
                           FROM vacations
                         MODEL
                            PARTITION BY (ID id)
                            DIMENSION BY (0 d)
                            MEASURES (POCETAK strt, KRAJ finish, POCETAK dy)
                            RULES
                               (dy [FOR d FROM 1 TO finish[0] - strt[0] INCREMENT 1] =
                                     (NVL (dy[CV () - 1], dy[CV ()]) + 1)))
               GROUP BY id
               ORDER BY id)
    SELECT t.id,
           t.strt,
           t.finish,
           t.days_off,
           vacations.korisnik,
           SUM (
              CASE
                 WHEN finish < TO_DATE ('01/07/2011', 'dd/mm/yyyy') THEN days_off
                 ELSE 0
              END)
           OVER (PARTITION BY vacations.korisnik ORDER BY t.id)
              this_years_running_total,
           SUM (
              CASE
                 WHEN finish < TO_DATE ('01/07/2011', 'dd/mm/yyyy') THEN days_off
                 ELSE 0
              END)
           OVER (PARTITION BY vacations.korisnik)
              this_years_grand_total,
           SUM (
              CASE
                 WHEN finish >= TO_DATE ('01/07/2011', 'dd/mm/yyyy')
                 THEN
                    days_off
                 ELSE
                    0
              END)
           OVER (PARTITION BY vacations.korisnik ORDER BY t.id)
              next_years_running_total,
           SUM (
              CASE
                 WHEN finish >= TO_DATE ('01/07/2011', 'dd/mm/yyyy')
                 THEN
                    days_off
                 ELSE
                    0
              END)
           OVER (PARTITION BY vacations.korisnik)
              next_years_grand_total
      FROM t, vacations
     WHERE t.id = vacations.id
    
    id                    strt               finish        daysoff          korisnik    thisyrruntot  thisyrtot   netyrruntot    nextyrtotal
    1     5/25/2011     5/31/2011     5     Kantardzic     5     22     0     26
    2     6/6/2011     6/13/2011     6     Kantardzic     11     22     0     26
    5     6/1/2011     7/6/2011     26     Kantardzic     11     22     26     26
    6     6/16/2011     6/30/2011     11     Kantardzic     22     22     26     26
    
  • Why my comment tags do not disappear when I re - save a file in windows Explorer

    In the details pane, I "name / size / Type / modified Date / comments" after saving a file, I click with the right button on the file, go to properties, then summarized and type a note in the comments area.  Apply, OK.  The tag appears in the comments column.  If I come back in the file and save it again, the label disappears from the comments column.  Is it possible to prevent that from happening?  What is a comment if it is not there?

    I use XP.

    Thanks in advance.

    Here, much depends on the application [no name] which is save the file again.  The comment is associated with the entry in the directory file.  When you 'save' a file, there are different ways, this can be accomplished by the application.  One way is to delete the current file and then save the contents to a new file with the same name.  In this case, the comments will be deleted and the original file and a 'new' file will have no comment.  Another way is to open the current file and write the file since the beginning too much.  In this case, the comment may be retained.  So it depends on the method used by the hosting program that saves the file.

    HTH,
    JW

  • New Firmware, id3 and ReplayGain problem tags

    I have problems getting a few metafields id3 showing correctly with the new firmware (1.02.26F).
    With the previous firmware, I used 'id3v2.3 + id3v1' type tag and it work perfectly, but with the new firmware it does not recognize the ReplayGain values. So I tried with id3v2.4, but now it does not recognize the metafield value type and with some files show strange values for track/Album Gain (e.g., dB-46 shows, 440, instead of + 3.56 dB. It is interesting-46.44 - 3.56 =-50; or dB - 48, 10, instead of + 1.90 dB. (- 48.1 - 1, 90 = mmm... okay, all mp3 files with track/Album Gain greater than 0.00dB show '-50.00 + realvalue'). If I play these files with ON Replaygain, volume will be very slow (as expected) and it is not possible to change the output volume (i.e., the output volume is the same what the Volume slider position is located, except in muted, which will cut.) I guess, because the gain is too important, volume slider to maximum is not enough to ensure that the output out of minimum volume).
    I mean, mp3 files with:
    -' id3v2.3 + id3v1' and "id3v2.3" types of tags, will not show Replaygain values;
    -' id3v2.4 + id3v1' tag types, does not recognize kind metafield.
    -the types of tags "id3v2.4", recognizes no Genre, artist, Album and title metafields.
    ReplayGain values - > 0.00 dB, will display an incorrect value.

    In addition, in the track info:
    -None of them show year;
    -List them all track number as xy, where x = TRACK number and y = TOTALTRACKS metafields.
    -Ditto for the number of the disk. XY, where x = DISCNUMBER and y = TOTALDISCS.

    I tag with foobar2000.

    In regards to the Vorbis comment, works perfectly.

    Does anyone else have this problem?

    Apparently there is incompatibility of all a rocket with foobar2000 mp3 QS.

    For the bug ReplayGain, Fuze will have problems reading the values with the "+" inside. I remove the workaround Nice '+' with Mp3Tag as shown here .

    This will also fix the value TYPE showing a minor issue "unknown."

    Date field still will not appear in the track info, although (zero size).

    Regarding the TOTALTRACKS thing, is how foobar2000 stores in id3 as explained here:

    [HydrogenAudio] Mapping tag foobar2000:ID3

    TOTALTRACKS: Stored in the same frame with TRACK number, separated by ' / ': for example "' 4/9.

    TOTALDISCS: Stored in the same frame with DISCNUMBER, separated by ' / ': for example "1/2 '.

    so Fuze displays the correct values, but it cannot show ' / '.

    Basically, marking with foobar2000 mp3 files:

    "ID3v2 writer compatibility mode" - ONE-> Fuze won't read ReplayGain values calculated by foob2000.

    'ID3v2 writer compatibility mode -' OFF-> Fuze will not recognize kind metafield.

  • ToolTip works don't not in MAC and HTML5 Audio tags works do not correctly in Premiere Pro &lt; 9.2

    Hi all

    ToolTips do not work in any version of Premiere pro panels under Mac. We ask a web page aspx inside an iframe with nodejs-disabled = "true" parameter

    A tool tip feature works in windows environment.

    The HTML5 audio tag also seek bar is come in first pro versions < 9.2

    Screen Shot 2016-02-19 at 7.53.17 PM.png

    You can give your valuable comments to solve this problem.

    Thank you and best regards,

    ANOOP NR

    From CEP_6.1_HTML_Extension_Cookbook.pdf:

    "CEP 5.2 supports the HTML title attribute to show the ToolTip on Windows. However, it is not supported on Mac because of rendering out of the screen. The alternative is to use JavaScript instead, please refer to http://www.a2zwebhelp.com/bootstrap-tooltips for good examples. »

    Anoop, send me a snippet that reproduces the audio tag seek bar issue, in a Panel from the body?

  • Can I do a rough cut of some comments/Tags?

    I have a project with several clips marked with comment markers. I want to take all similar comments (say all the tag named "John") and string them into a rough cut easily. Is there an easy way to do this? I swear I've seen before but can't remember where or how do.

    Thank you.

    Scott

    Hey Scott.

    There is a way to add markers to comment in a Rough Cut for a clamp open, but currently no way easy to search in several clips and then only add markers of commentary to multiple clips in a tough don't cut at the same time.

    To do a single item:

    0 open a Rough Cut (or create one)

    1. open the clamp (double click in the project Panel)

    2. in the markers Panel, enter the string you are looking for in the SEARCH field (for example John)

    3. only the markers with JOHN in them will now appear in the markers Panel

    4. Select the markers in the marker Panel you want added in the Rough Cut (use CTRL + A to select all markers)

    5. go to the menu at the top of the application where you will see the option to add markers to the open cut rough Rough Cut: 'Add selected markers '.

    We are looking for possible ways to improve the workflow of prelude to allow you to search for markers across multiple clips in the project Panel. The set of markers resulting would be selectable and ideally be able to be added in the first edit. But it's still on the drawing board with a targeted release date yet.  Looks like this can help, Yes?

    Thank you-

    Michael

  • Markers, comments, Tags, labels do not appear on the second computer

    Hi team,

    My question:

    IM in the process of editing a film with several different sequences, and have created many Adobe first Project (.prproj) files through Adobe prelude. When Im done to add these tags (or are they tags or markers or comments or else called in English?) to my images, I export the project (.plproj) Prelude to first file via the "file > export to Premiere Pro ' menu option and save it as a project file first on my dropbox. My work mate can then open the project from creation to his computer and see tags in its time line to help him organize images for editing purposes. Although this is not necessary, we even share the same folder structure on our external hard drives, we work with (with the exception of the drive letters different so far, I just changed mine to match his, it worked fine before).

    The problem is that I have created and shared a file prproj as described above, but my work mate can't see tags I included in the time line. I used trademarks chapter again as well as markers of standard comment in there, but she can't see everything in his first Pro. It worked before with other files and I don't know what is different now. She can link the files on his hard drive again but does not see the appropriate markers.

    Any ideas?

    We are using Windows 7, I run Adobe Master Collection CS6.0.3 (my work mate also manages CS6.0.?) and work with the Panasonic P2 footage files.

    OK, I found the error:

    For some reason, I had duplicates of two important elements in the past. I forgot and place markers on the elements in double, instead of the original with the same content (but different names). In this way, I had two versions of the files on my hard drive with markers on the bad. It worked for me, because whenever I read the clips in my project, I could see the markers correctly in the time line. When my work mate open the same project file on its system, she would have markers in the project file, but they were pointing to the duplicate files on my hard drive, and not on his original ones. That way it only looked at as if we had the same set of files when in fact we do not have. I hope it's understandable.

    See you soon

Maybe you are looking for

  • A1103 new Ram and HARD drive will not start

    Hello. I have a Mac mini A1103. When I got there the folder flashing with question mark. I got a macbook earlier where this problem was solved by installing a new hard drive. so I ordered a new 160 GB IDE 2.5 "5400 RPM and 1 GB Corsair Valueselect DD

  • L50 - A satellite uninstall IE 10 and install IE 9 using Windows 8

    I need to use IE 9 rather than IE10, so I can monitor the different tabs that I work. IE 10 does not allow that to happen. I can turn off IE 10 by going in the Panel, then selecting the features of Microsoft and then uncheck the box 10 of IE. This re

  • TouchSmart, 610-112it on external TV?

    I have a Touchsmart, 610-112it, is it possible to connect its output to a TV so that I can see on television the computer output? The TV accepts a variety of inputs, VGA, SCART, HDMI, ecc. ECC. Thank you!

  • Ikeep see stackoverflowon $line0 on hulu

    on hulu stack overflow

  • 138 (net_err_network_access_denied

    I was wondering if someone can help me, I'm not very good with computers, but I do know a little, my laptop was working fine, it says im online but I can't access internet explorer or other browsers and I do not understand why, ity is possibly due to